I'm struggling to figure out what's happening. I have this code:
<div style="height:400px; width:200px"><script type="text/javascript" src="http://grazr.com/gzloader.js?font=arial&amp;fontsize=9pt&amp;linktarget=grazrwin&amp;file=http://grazr.com/index.xml"></script><a href="http://grazr.com"><img style="border:none" src="http://grazr.com/images/gzlogo.png" alt="grazr" onload="GrazrLoad(this)" /></a></div>

I wish to put into a block I can then position in one of the sidebars. Problem: getting 'no target script block' so I'm assuming I need some sort of PHP?? If so then is there a generic PHP snippet somewhere. I've searched Google and Drupal and am getting nowhere.

Stuff like this is pretty important because I will want to include a number of external JS calls.

Thanks

D :)

Comments

publishing’s picture

Thanks for posting question. I too have a need to post javascript in a block for sidebar display.
Not quite sure where to post the code script (content body box of block or page content within the block?)

Also, are php tags required with javascript posting or are there separate tags for javascript?

Thank you for your time and sharing a piece of your knowledge,

havoc’s picture

I have some Perl scripts that I do not want/have time to have to rewrite as modules at this time. I need to HTML equivelent of <--#include virtual="/path/to/file"-->

Thanks in advance!