PDA

View Full Version : Javascript i think



nelly
02-07-2006, 11:48 AM
Hey is this right but i don't get it i think i got the code it's for banners changing etc. so i can have more than 1 banner going through like flash

<script language="JavaScript">
<!--
var SymRealOnLoad;
var SymRealOnUnload;
function SymOnUnload()
{
window.open = SymWinOpen;
if(SymRealOnUnload != null)
SymRealOnUnload();
}
function SymOnLoad()
{
if(SymRealOnLoad != null)
SymRealOnLoad();
window.open = SymRealWinOpen;
SymRealOnUnload = window.onunload;
window.onunload = SymOnUnload;
}
SymRealOnLoad = window.onload;
window.onload = SymOnLoad;
//-->
</script>


I have that but where do i put banner url if you get me + rep if you help!

Nick14
02-07-2006, 11:50 AM
what do you mena you thinkj it is

Tomm
02-07-2006, 11:54 AM
Lol. Thats nothing like a banner change code.

Liam.
02-07-2006, 12:05 PM
<script language="JavaScript">
<!--
function random_imglink(){
var myimages=new Array()
//specify random images below. You can have as many as you wish
myimages[1]="images/1.gif"
myimages[2]="images/2.gif"
myimages[3]="images/3.gif
var ry=Math.floor(Math.random()*myimages.length)
if (ry==0)
ry=1
document.write('<img src="'+myimages[ry]+'" border=0>')
}
random_imglink()
//-->
</script>

Halting
02-07-2006, 12:07 PM
The script above is a rotating image script which picks a random image upon (re)load. You can also get ones which fade from image to image and they let you specify the amount of seconds you are going to make your visitors wait between transitions.

nelly
02-07-2006, 12:12 PM
http://www.europehabbo.com/testing1.htm (http://www.europehabbo.com/testing1.htm) hmmm don't seem to show

Tomm
02-07-2006, 12:15 PM
myimages[1]="http://www.europehabbo.com/advertisement/djnelson"
myimages[2]="http://www.europehabbo.com/advertisement/djnelsonanddjspindro"
myimages[3]="images/3.gif

The first two are not valid images and they dont exsist. Also you dident close the " on the 3rd image.
Edit: The 3rd image doesnt exsist as well.

Liam.
02-07-2006, 12:15 PM
Oh right, you want images into flash basically?

nelly
02-07-2006, 12:16 PM
Lol i forgot .gif :P

myimages[1]="http://www.europehabbo.com/advertisement/djnelson"
myimages[2]="http://www.europehabbo.com/advertisement/djnelsonanddjspindro"
myimages[3]="images/3.gif

The first two are not valid images and they dont exsist. Also you dident close the " on the 3rd image.
Edit: The 3rd image doesnt exsist as well.

Tomm
02-07-2006, 12:17 PM
Lol i forgot .gif :P

http://www.europehabbo.com/advertisement/djnelson.gif

They still dont exsist. You need to upload them you know?

nelly
02-07-2006, 12:20 PM
http://www.europehabbo.com/testing1.htm is that right?
http://www.europehabbo.com/advertisement/djnelson.gif

They still dont exsist. You need to upload them you know?

Call
02-07-2006, 12:32 PM
Ye only 2 images loaded in that tho but yes thats on page refresh not fade ??

nelly
02-07-2006, 12:43 PM
Huh this is weird i also tried this 1 www.europehabbo.com/tester2.htm (http://www.europehabbo.com/tester2.htm) but the images don't seem to change
Ye only 2 images loaded in that tho but yes thats on page refresh not fade ??

Liam.
02-07-2006, 03:45 PM
^^ the image location is incorrect

nelly
02-07-2006, 03:54 PM
is image location advertisements?
^^ the image location is incorrect

Want to hide these adverts? Register an account for free!