image banner:
[quote]function banner(){
x=banneradrow.getElementsByTagName("td")[0];
x.innerHTML="<img src='URL OF IMAGE' border='0'>"
}
setTimeout("banner()",500);[/quote]
flash/embed banner:
[quote]function banner(){
x=banneradrow.getElementsByTagName("td")[0];
x.innerHTML="<embed src='URL OF FLASH BANNER' width='100%' height='auto'></embed>"
}
setTimeout("banner()",500);[/quote]
You can insert anything from slideshows to chatbox to whatever you want...
if you don't want to use the timeout,
use onload (your choice)
compile all your onload events in one...
code provided by: ArchAngell
[b]for ie user u can just simply use this part[/b]:
[quote]x=banneradrow.getElementsByTagName("td")[0];
x.innerHTML="<img src='URL OF IMAGE' border='0'>"[/quote]
or this for ur embed
[quote]x=banneradrow.getElementsByTagName("td")[0];
x.innerHTML="<embed src='URL OF FLASH BANNER' width='100%' height='auto'></embed>"[/quote]
Last edited by switpotato (2008-02-05 03:58:19)