<script language=”javascript”>
if (country_code==’US’)
{
document.write("[adrotate banner="1"]");
}
else
{
document.write("[adrotate banner="2"]");
}
</script>
[adrotate banner="x"]
are wordpress shortcodes used for the Adrotate plugin
This script doesen't work because somehow outputting [adrotate banner="x"]
is not possible?
It uses the globally saved variable country_code
.
I've tried with both "
and '
(and the inner using one of them and the outer the other), but with no luck.
Any way to work around this and still use JS?