Click to See Complete Forum and Search --> : New image changing on the homepage every time you logo on
ruthclere27
12-11-2003, 06:38 AM
Hi, I'm a grphic designer and know very little about java script. I've been making a website for a friend and they want a different image to appear on their home page every time you go onto the site. I'm sure this is really simple and have seen it done on numerous sites (eg.tiffany.com) but don't know how to do it. Would appreciate any help anyone has to offer.
Thanks
Ruth
aommaster
12-11-2003, 07:04 AM
how about this site: Try it
http://javascriptkit.com/script/cut176.shtml
aommaster
12-11-2003, 07:07 AM
if that is not what u want, then take a look at this one:
http://javascript.internet.com/miscellaneous/random-image.html
ruthclere27
12-11-2003, 07:21 AM
I tried the second script, and changed the gifs in the script to my two different jpgs and uploaded it but it doesn't seem to work. The code is all in the right place - should I be changing something else as well as the giffs?
aommaster
12-11-2003, 07:23 AM
umm... ok, to tell u honestly I don't know really much about javascript, but i really wanted to help you.
Ok, what i would do if i were you is to:
-check the spelling. It has to be exactly case sensitive
-Then, if that doesn't work, then try to actually include the address of the picture. The WHOLE address. like http://www.yourwebsite.com/yournameifexists/imagename.gif
aommaster
12-11-2003, 07:26 AM
if those don;t work, try refreshing many times, the tifanny website, i had to refresh twice for the image to change!
ruthclere27
12-11-2003, 07:28 AM
fantastic I'm going to give it another go, thanks again :-)
aommaster
12-11-2003, 07:28 AM
i recommmend that u better hurry, cause i have to go soon :)
ruthclere27
12-11-2003, 07:38 AM
right well its doing it however its placing the same image underneath itself and changing that rather than changing the image itself - strange. Putting in the full link worked though, so thats great
aommaster
12-11-2003, 07:40 AM
hmmm.... I don't really know
But you could ask a wiz like pittiman to help, i think he's online now!
by the way, if ur free, ONLY if ur free, you could make a logo for my website, www.dragonslair.co.nr and since ur there, have a look at the coding section of the computer area. There are loads of scripts there that you could use
ruthclere27
12-11-2003, 07:41 AM
yeh ok no problem a favour for a favour.
aommaster
12-11-2003, 07:42 AM
yeah, but i don't really think i did U a favour :) lol
its ok, just in ur free time, its not really important.
By the way, look at the source of ur HTML and give it me, really quickly, cause my time is nearing to go
aommaster
12-11-2003, 07:50 AM
Ok i have to go, post the source code here, when i come back I'll have a look at it
by the way, if someone replies, good luck with it, i hope it works out
Thanx
aommaster
12-12-2003, 06:32 AM
well, i'm back!!!
Do u have the source code, if so, please give it to me :) so i can have a look at it
ruthclere27
12-12-2003, 06:47 AM
Hiya, can I post the source code so its not viewed by everyone else?
aommaster
12-12-2003, 06:53 AM
yeah
Just send me a private mail
click PM under my name
aommaster
12-13-2003, 09:58 AM
I'm totally confused man, its all ok, it sohuld work properly
i dunno
ur best bet is to go and post this question again, but not in the same words, since it may get blocked, so ask them what is wrong with the script. :)