Creative COW SIGN IN :: SPONSORS :: ABOUT US :: CONTACT US
WEB: Web Design Forum- TutorialsDreamweaver Forum- TutorialsFlash Forum- TutorialsWeb StreamingTraining

iframe linking to AP Div and iframe fixed - wont scroll

Cow Forums : Adobe Dreamweaver
iframe linking to AP Div and iframe fixed - wont scroll
by Jason Craft on Jun 30, 2008 at 1:54:35 am

Does anyone know how I can link and Iframe so that when something is clicked in the iframe it opens an Ap Div. The iframe doesnt allow you to view its contents to link it to things in your page. Another question is there a way to have it set up where an iframe is fixed, it wont scroll if you scroll the entire page.

Respond to this post     Return to posts index

Re: iframe linking to AP Div and iframe fixed - wont scroll
by Abraham Chaffin on Jun 30, 2008 at 3:56:58 pm

Set the default display style of the AP Div as display: none; to make it invisible by default. Then set the onclick behavior of the IFrame as

document.getElementById('ID_OF_THE_AP_DIV').style.display='';

Of course put the unique id of the div in it's place in the behavior.

Set the scrolling behavior of the IFrame to scrolling="no"

Abraham

Respond to this post     Return to posts index

Re: iframe linking to AP Div and iframe fixed - wont scroll
by Jason Craft on Jul 1, 2008 at 10:38:11 pm

when i ment that i dont want the iframe to scroll I ment not to move in the page at all, like as if it were the background and fixed so when scrolling thru the page the iframe wont scroll in that page



Respond to this post     Return to posts index

<< PREVIOUS THREAD   •   VIEW ALL THREADS   •   PRINT   •   NEXT THREAD >>


FORUMSTUTORIALSMAGAZINEDVDsBOOKSPODCASTSEVENTSSERVICESNEWSLETTERNEWSBLOGS

© CreativeCOW.net All rights are reserved.

[Top]