Marquee script

Status
Not open for further replies.

oo7josh

New Member
Messages
19
Reaction score
0
Points
0
I was wondering if we code make the marquee tag in HTML do domething like what x10 has done at the top of the forum... Where it says "PHP Problems? Upgrade your PHP at http://x10hosting.com/acccount"...except can we put javascript in it?
it would look something like this right?
HTML:
<MARQUEE>
<!-- Monster Banner Exchange code begin -->
<script language="JavaScript">
document.write('<s'+'cript language="JavaScript" src="http://www.monsterbannerexchange.com/work.php?n=62&size=1&j=1&c=8-3-9&code='+new Date().getTime()+'"></s'+'cript>');
</script>
<NOSCRIPT>
<IFRAME SRC="http://www.monsterbannerexchange.com/work.php?n=62&size=1&c=8-3-9" width=468 height=60 marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=0 scrolling="no"></IFRAME>
</NOSCRIPT>>
</MARQUEE>

but when i try to use this script, it dosn't do anything...
 
Last edited:

Hazirak

New Member
Messages
197
Reaction score
0
Points
0
I don't believe calling document.write to write another block of JavaScript is kosher.
 

kajasweb

New Member
Messages
1,723
Reaction score
0
Points
0
Why can't you try using the Script Tags directly, instead of writing it in document through another Script tag?

I don't know whether my idea will work.. try
Code:
<script language="JavaScript">
document.write("<scr" + "ipt type='text/javascript' src='http://www.monsterbannerexchange.com/work.php?n=62&size=1&j=1&c=8-3-9&code=" + new Date().getTime() + "'><\/scr" + "ipt>");
</script>

You can try using type attribute and escaping slash in closing script tag.
 
Last edited:

oo7josh

New Member
Messages
19
Reaction score
0
Points
0
ok well i got that to work but now i want to put two banners on the same lines... heres the script...

HTML:
<marquee width='100%' scrollamount='10' onMouseover="this.scrollAmount=1" onMouseout="this.scrollAmount=10"> <script type="text/javascript" src="http://x10hosting.com/adserve.js?corporate"></script><!-- Monster Banner Exchange code begin --><script language="JavaScript">document.write('<s'+'cript language="JavaScript" src="http://www.monsterbannerexchange.com/work.php?n=62&size=1&j=1&c=8-3-9&code='+new Date().getTime()+'"></s'+'cript>'); </script> <NOSCRIPT> <IFRAME SRC="http://www.monsterbannerexchange.com/work.php?n=62&size=1&c=8-3-9" width=468 height=60 marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=0 scrolling="no"></IFRAME> </NOSCRIPT>
</marquee>

You can see an example http://www.krazet.x10hosting.com/forums/index.php scroll all the way down to the bottom....
 

Jober68

Member
Messages
63
Reaction score
0
Points
6
Dude get your install scripts taken out anyone can install your board right now then you'd be screwed out of an IPB 2.2.x version.... You really do need to think.
 
Status
Not open for further replies.
Top