Jul 27 2006, 11:39 PM
Post
#1
|
|
![]() Group: Moderators Posts: 2,499 Joined: 23-February 06 From: El Paso Texas Member No.: 32 |
i got this toggle JS code that works in IE but not Firefox
java script: QUOTE <script language="javascript"> <!-- function toggle(targetId) { target = document.all(targetId); if (target.style.display == "none") { target.style.display=""; } else { target.style.display="none"; } } //--> </script> And when i call it: QUOTE <a href="java script:toggle('Name')">Click Here Thingie</a> <br /> <div id="Name" style="display:none"> <div alighn="justify"> <font color="#000000" size="1"><? include('name.php');?></font> </div> </div> any ideas? -------------------- |
|
|
|
![]() |
Jul 30 2006, 04:13 PM
Post
#2
|
|
![]() Group: Moderators Posts: 2,499 Joined: 23-February 06 From: El Paso Texas Member No.: 32 |
QUOTE (Hartmann @ Jul 28 2006, 11:38 AM) This works fine for me in Firefox. Do you have the Javascript in the head section of your HTML? What is in your name.php file? javascript is int he head the php file is just a paragraph of text -------------------- |
|
|
|
woody Javascript help Jul 27 2006, 11:39 PM
Frantic I noticed a couple of things
QUOTE //-->
Isn... Jul 28 2006, 10:23 AM
Hartmann QUOTE (Frantic @ Jul 28 2006, 10:23 AM)I noti... Jul 28 2006, 11:35 AM
Hartmann This works fine for me in Firefox. Do you have the... Jul 28 2006, 11:38 AM
Hartmann QUOTE (woody @ Jul 30 2006, 04:13 PM)javascri... Jul 30 2006, 09:44 PM
zetec make sure you have the latest JRE.
you probably d... Aug 1 2006, 04:52 PM
Hartmann QUOTE (zetec @ Aug 1 2006, 04:52 PM)make sure... Aug 2 2006, 07:22 AM
zetec i was only half paying attention. still am. i have... Aug 5 2006, 08:23 PM![]() ![]() |
| Lo-Fi Version | Time is now: 11th June 2026 - 01:11 AM |