PDA

View Full Version : Changing the visibility of an <iframe>


asyl
07-28-2003, 11:44 AM
Ive been stressing about how to do this for about a week now, and i must admit im not very good regarding dhtml/js. Can anyone please suggest (possibly with an example) of how i can make a link that changes the visibility property of an iframe called 'images' to visible, and another one (positioned inside the iframe) to close it, or make it invisible. Thanks.
:thumbsup:

bazz
07-28-2003, 01:32 PM
I'm not quite sure I understand but if you want to change the content of an iframe from say blue (#000080) to yellow (#ffff80) then my way (with little js knowledge), would be to simply use two separate pages with different css attributes.

<A href="name of page to load in iframe" target ="name of iframe">

I hope I am right here; this suggestion will work even if .js is turned off by the user.

hth

DougBTX
07-28-2003, 02:46 PM
Try adapting this code:

http://forums.devshed.com/t35750/s.html

Douglas