homepage Welcome to WebmasterWorld Guest from 107.20.131.154
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Subscribe to WebmasterWorld

Home / Forums Index / Browsers / Firefox Browser Usage and Support
Forum Library, Charter, Moderators: incrediBILL

Firefox Browser Usage and Support Forum

    
Floating Div Javascript not working in FF
Floating Div Javascript Fire Fox
Taggert




msg:3980208
 7:04 pm on Aug 28, 2009 (gmt 0)

I am trying to make a Floating div visible in both I.E. and Firefox. I can only get it to work in i.e. it works in I.e. when I put the code in the <HEAD> tag however not in Firefox. I can get it to work for both if I put the code outside of the HTML tags altogher however If it works in both it justifies my web page to the left in i.e. I have inserted every possible tag possible to center the page but it is still justifying the page to the left. Whats more is the code is a mixture of includes, css, and asp. The script that I am using for the "visibility" is as follows:

<script type="text/javascript">

// shows the pop up div

function showObject(e, element) {

document.getElementById(element.id).style.visibility = "visible";

document.getElementById(element.id).style.top = e.clientY;

}

// hides to pop up div

function hideObject(element) {

document.getElementById(element.id).style.visibility = "hidden";

}

</script>

WHAT I AM DOING WRONG!

 

rocknbil




msg:3980249
 8:15 pm on Aug 28, 2009 (gmt 0)

Welcome aboard Taggert, without running the code, where does "clientY" come from?

Also, what does your FireFox error console have to say about it?

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Browsers / Firefox Browser Usage and Support
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About
© Webmaster World 1996-2014 all rights reserved