GIDForums  

Go Back   GIDForums > Webmaster Forums > Web Design Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 13-Mar-2006, 00:29
pavka pavka is offline
New Member
 
Join Date: Mar 2006
Posts: 1
pavka is on a distinguished road

Problem in calling a javascript function in mozilla


Hi,

This function is working fine on IE but not on mozilla

Code:
function expandIt(el) { if (!ver4) return; if (IE4) { whichEl = eval(el + "Child"); whichIm = event.srcElement; if (whichEl.style.display == "none") { whichEl.style.display = "block"; whichIm.src = "triUp.gif"; }else { whichEl.style.display = "none"; whichIm.src = "triDown.gif"; } }else { whichEl = eval("document." + el + "Child"); whichIm = eval("document." + el + "Parent.document.images['imEx']"); if (whichEl.visibility == "hide") { whichEl.visibility = "show"; whichIm.src = "triUp.gif"; }else { whichEl.visibility = "hide"; whichIm.src = "triDown.gif"; } arrange(); } }

Now i am calling the above function from the following code

PHP Code:

print "</td></tr></table></td></tr></table>
                <table WIDTH='90%' CELLSPADDING='0' CELLSPACING='0' BORDER='0' BGCOLOR='#FFFFFF'>
                <tr><td>
                <DIV ID=\"elOneParent\" CLASS=parent>
<H3><A HREF=\"#\" onclick=\"expandIt('elOne', 'imEx'); return false\">
                <IMG NAME=\"imEx\" SRC=\"$c{url}{public_images}/triDown.gif\" BORDER=\"0\" ALT=\"Expand/Collapse Item\">
                <font color=\"#333399\">
                2.0 Contact Information
                </font></A>
                </DIV>
                </td></tr><tr><td>
                <DIV ID=\"elOneChild\" CLASS=child > 



thanx
Last edited by admin : 13-Mar-2006 at 00:55. Reason: please insert your example codes between [code] and [/code] bbcode tags
 
 

Recent GIDBlogProgramming ebook direct download available by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Include] Doubly-linked List dsmith C Programming Language 6 14-Apr-2006 14:12
An Introduction to Javascript JasonMichael Web Design Forum 2 24-Oct-2004 11:19
Revising Script style ?????? pepee MySQL / PHP Forum 4 14-Apr-2004 05:59
JavaScript Tutorial Part 1 pcxgamer Web Design Forum 2 01-Dec-2003 10:16

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 10:29.


vBulletin, Copyright © 2000 - 2009, Jelsoft Enterprises Ltd.