What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » Javascript variable help[solved]

Javascript variable help[solved]
Author: Message:
QtanJ
Junior Member
**


Posts: 37
34 / Male / –
Joined: Nov 2005
O.P. RE: Javascript variable help.
I've managed to make it. The sourcecode looks like a mess, but at least it works. Feel free to use it as you like as long as you want.
code:
<script language="JavaScript" type="text/JavaScript">
<!--
function toggleVisibility(obj)
{
     
     document
if (obj!=null)
{
if (document.getElementById)
{
var current = (document.getElementById(obj).style.display == 'block') ? 'none' : 'block';
document.getElementById(obj).style.display = current;
}
else if (document.all)
{
var current = (document.all[obj].style.display == 'block') ? 'none' : 'block'
document.all[obj].style.display = current;
}
}
}
var Value = Math.random()*57568745757456;
document.write("<a href=");
document.write('"javascript:toggleVisibility(');
document.write("'");
document.write(Value);
document.write("')");
document.write('">Spoiler</a>');

document.write("<div id=");
document.write("'");
document.write(Value);
document.write("'");
//-->
</script>
style="display:none;">
<p style="background-color:FF0000;FONT-SIZE: 24pt;">
{content}
</p>
</div>

Sorry, I didn't express myself how I needed help clear enough, but case solved.
Linux > Windows
Opengl > DirectX
02-19-2006 10:28 PM
Profile E-Mail PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Javascript variable help[solved] - by QtanJ on 02-19-2006 at 08:12 PM
RE: Javascript variable help. - by ShawnZ on 02-19-2006 at 08:16 PM
RE: Javascript variable help. - by QtanJ on 02-19-2006 at 10:28 PM
RE: Javascript variable help[solved] - by -dt- on 02-20-2006 at 03:31 AM
RE: Javascript variable help[solved] - by QtanJ on 02-20-2006 at 01: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