Witamy, Gość. Zaloguj się lub zarejestruj.
Czy dotarł do Ciebie email aktywacyjny?


Zaloguj się podając nazwę użytkownika, hasło i długość sesji

  Pokaż wiadomości
Strony: [1]
1  Ogólne dyskusje / Języki Internetu / Odp: [ JS ] rotator bannerow : 06.09.2008, 00:08:50
niestety nie moge uzywac skryptów server-side (PHP, JSP, ASP, etc.).
2  Ogólne dyskusje / Języki Internetu / [ JS ] rotator bannerow : 05.09.2008, 22:08:44
Witam,
mam pytanie co musze zmienic zeby wszystko dzialalo ok?
Banery sie wyswietlaja ale nie wiem jak podpiac pod nie dobry adres?

Kod:
<script language="JavaScript1.2"> 


var ie=document.all&&navigator.userAgent.indexOf("Opera")==-1
var dom=document.getElementById&&navigator.userAgent.indexOf("Opera")==-1

//Specify IFRAME display attributes
var iframeprops='width=750 height=100 marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" scrolling="no"'

//Specify random URLs to display inside iframe
var randomcontent=new Array()

randomcontent[0]="XXX"
randomcontent[1]="XXX"

//No need to edit after here
if (ie||dom)
document.write('<iframe id="dynstuff" src="" '+iframeprops+'></iframe>')

function random_iframe(){
if (ie||dom){
var iframeobj=document.getElementById? document.getElementById("dynstuff") : document.all.dynstuff
iframeobj.src=randomcontent[Math.floor(Math.random()*randomcontent.length)]
}
}

window.onload=random_iframe

</script>
Chyba ze ktos zna jakis inny latwy rotator bannerow w JS?
Strony: [1]