Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



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

Posts: 81
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!
 
 
Register now for full access!
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.08736 seconds with 12 queries