aSoldier Posted January 25, 2006 Report Share Posted January 25, 2006 Hi all, I have been trying to fix "popup" but there seems to be a few errors in the code. script.htm Can anyone help? It would be much appreciated. Thanks in advance Quote Link to comment Share on other sites More sharing options...
hytga Posted January 25, 2006 Report Share Posted January 25, 2006 (edited) use these to your show hide operations include both scripts. (change the exteinsions to .js) <script type="text/javascript" src='ShowDiv.js'> <script type="text/javascript" src='GetElemByID.js'> then suppose you have stuff here you call either of the funcitons in shodiv.js function ShowHideDiv(id) ShowHideDiv hides if it's visible, shows if it's hidden function ShowDiv(Itm) function HideDiv(Itm) and pass the id of the div "xx" <script language="javascript"> HideDiv("xx"); ShowDiv.js.txtGetElemByID.js.txt Edited January 25, 2006 by hytga Quote Link to comment Share on other sites More sharing options...
hytga Posted January 25, 2006 Report Share Posted January 25, 2006 actually you need GetElementByID if you're going to use the ShowHideDif funciton. for the other two you don't need it Quote Link to comment Share on other sites More sharing options...
aSoldier Posted January 25, 2006 Author Report Share Posted January 25, 2006 Ok thanks I'll try it. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.