Reply
Floating script positioning in iframe
Old 01-22-2007, 05:58 AM Floating script positioning in iframe
Skilled Talker

Posts: 80
Trades: 0
Hi folks

I am using this script

www.jtricks.com/javascript/navigation/floating.html

to float a div (only becomes visible onclick). Works fine on a normal page. However, in one circumstance I also need it to work on a page which is enclosed in an iframe.


However, providing that the iframe height is sufficient that scrolling does not happen, the problem is that this floating script positions its div 100px below the top of the iframe, not 100px below the top of the main page, which is what I'd like. So, effectively, the div does not float, it is hidden at the top of the iframe.

Is there any way to make the script work based on position within the parent window, rather than the iframe itself, even though the script and floating div are within the iframe?

Thanks and best wishes

Tony
soon is offline
Reply With Quote
View Public Profile Visit soon's homepage!
 
 
When You Register, These Ads Go Away!
Reply     « Reply to Floating script positioning in iframe
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.08315 seconds with 13 queries