I have a DIV with a script as shown below
<div style='text-align:center'> <script type='text/javascript' language='JavaScript' src='http://xslt.alexa.com/site_stats/js/t/a?url=www.mysite.com'></script> </div>
What I want is that the users should not be able to see this div on the site, but the script should be executed as in the normal way. Please suggest!
I am not sure what it is you are including with that Javascript call, but if you want to hide the contents of this DIV just add this to the style declaration:
display: none;Check out the CSS display documentation.
EDIT: The SCRIPT inside the DIV tag will still get loaded, which I believe is the desired effect.