PDA

View Full Version : Dynamic Labels


stephan
08-16-2004, 07:58 AM
I want to create a "Label" that changes according to what you click. I was thinking of useing div's and toggeling visibility but that is bad coding. I have an example:

www.weddingworld.org.za/newLook.htm

when a user clicks on a menu item, the page should come up and instead of putting the title of that page on the page, I want it to be displayed above the IFRAME.

Any help on this problem will be much appreciated

Many Thanks

ucm
08-16-2004, 06:27 PM
the page doesn't load...

stephan
08-17-2004, 04:09 AM
sorry, it moved to the root
www.weddingworld.org.za

IKLOP
08-17-2004, 04:18 AM
This should do it:<a href='stuff.html' target='iframename' onclick="document.body.getElementById('labels').innerHtml='Stuff';">click for stuff</a>
<a href='junk.html' target='iframename' onclick="document.body.getElementById('labels').innerHtml='Junk';">click for junk</a>
...
<div name='labels'></div>