What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » Html help

Html help
Author: Message:
Veggie
Full Member
***

Avatar

Posts: 415
Reputation: 21
37 / Male / Flag
Joined: Sep 2004
RE: Html help
Thats a terrible way of doing it! dont hide the content using a onload use a css display:none

In the <head>
code:
<javascript>
    function hide(obj)
    {
        var ele = document.getElementById(obj);
        var style = ele.style;
        var img = "img"+obj;
        var currentStyle = ele.currentStyle || window.getComputedStyle(ele, null);
        if (currentStyle.display == "none"){
            style.display = "block";
            document.getElementById(img).setAttribute('src','images/opentriangle.gif');
            }
        else{
            style.display = "none";
            document.getElementById(img).setAttribute('src','images/triangle.gif');
            }
    }
   
</javascript>


code:

<a href="#" onclick="javascript:hide('templates');return false;"><img src="images/triangle.gif" id="imgtemplates" border="0"> Templates:</a>

<div id="templates" style="display:none">
Content that hidden
</div>

Not sure if it will work as its taken out of my site....

This post was edited on 06-15-2005 at 05:24 PM by Veggie.
06-15-2005 04:35 PM
Profile E-Mail PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Html help - by absorbation on 06-15-2005 at 04:06 PM
RE: Html help - by Veggie on 06-15-2005 at 04:15 PM
RE: Html help - by Dempsey on 06-15-2005 at 04:17 PM
RE: Html help - by absorbation on 06-15-2005 at 04:18 PM
RE: Html help - by Veggie on 06-15-2005 at 04:28 PM
RE: Html help - by absorbation on 06-15-2005 at 04:29 PM
RE: Html help - by Veggie on 06-15-2005 at 04:33 PM
RE: Html help - by Matti on 06-15-2005 at 04:33 PM
RE: Html help - by Veggie on 06-15-2005 at 04:35 PM
RE: Html help - by Ezra on 06-15-2005 at 09:50 PM
RE: RE: Html help - by Veggie on 06-16-2005 at 06:36 AM
RE: Html help - by absorbation on 06-16-2005 at 02:55 PM
RE: Html help - by Veggie on 06-16-2005 at 04:58 PM
RE: Html help - by absorbation on 06-16-2005 at 04:59 PM
RE: Html help - by Ezra on 06-16-2005 at 06:52 PM
RE: Html help - by absorbation on 06-16-2005 at 06:58 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On