PDA

Click to See Complete Forum and Search --> : I think that i've asked this but....


chrismitchell
Feb 21st, 2002, 02:50 AM
I think that i've asked this question but for the life of me I can't remember...

I need to change an image in my site after clickin on a link... Its an image saying the title of the page that sits in a layer in topframe (which is where the buttons are)...

Goto the site and have a look.. I need the image saying home etc to change to the different names of the various pages..

www.a3designandprint.co.uk

Any help would be greatly appreciated.

Chris

Cudabean
Feb 21st, 2002, 08:55 PM
The top image could almost be treated like a rollover where javascript just changes the image to the appropriate one whenever a link is pressed. The advantage is that all of the top images could be pre-loaded which would make the loading of new pages that much faster.

Another approach (this one's very simple) would be to cut up your topFrame so that it's two frames--an upper (where your image is) and a lower (where your nav bar is). Whenever anyone clicks on a nav bar button, not only does the content frame get changed, but also the upper topFrame is changed too.

cudabean

chrismitchell
Feb 22nd, 2002, 02:05 AM
How would I do it in the JavaScript? I would prefer not to use any more frames if I can get away with it (cause it may be occasionally updated by my boss who has no idea)...