![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Confirmed User
Join Date: Feb 2003
Posts: 6,040
|
Need javascript/firefox help! Any coders online who can look at my code?
On this page I have a table with an ID of "picTable".
I have this javascript code that I am using in order to change the background of the table when a button is moused-over: <script type="text/javascript"> function t(s){ document.getElementById('picTable').background = s; //document.getElementById('picTable').refresh; } </script> and for the button ... <a href="#" onMouseOver="t('/hardware_graphics/pic1.jpg');" onMouseOut="t('/hardware_graphics/image_placeholder.jpg',0);" /> Works perfectly in IE, but not in Firefox. I have used the same script to change other elements and it has worked in FF, but not with the table background image. Also, the refresh tag is in there because I tried it and it didn't make a difference. Thanks a lot for any ideas! |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Totally Borked
Industry Role:
Join Date: Feb 2005
Posts: 6,284
|
what (true/false) do you want the function to return and when?
__________________
![]() For coding work - hit me up on andy // borkedcoder // com (consider figuring out the email as test #1) All models are wrong, but some are useful. George E.P. Box. p202 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Totally Borked
Industry Role:
Join Date: Feb 2005
Posts: 6,284
|
also,
<a href="#" onMouseOver="t('/hardware_graphics/pic1.jpg');" onMouseOut="t('/hardware_graphics/image_placeholder.jpg',0);" /> why the closing tag on the <a> link? eg <a href..... /> Is there no link? If not, why the <a> tag?
__________________
![]() For coding work - hit me up on andy // borkedcoder // com (consider figuring out the email as test #1) All models are wrong, but some are useful. George E.P. Box. p202 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Confirmed User
Join Date: Feb 2003
Posts: 6,040
|
Ahh nevermind, made it work by using a regular image to replace rather than table bg image. Not ideal because i have to do some cropping but it will work.
|
![]() |
![]() ![]() ![]() ![]() ![]() |