Darksat IT Security Forums
January 14, 2026, 02:25:32 am
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Darksat IT Security Forum
From Firewall Support, AntiVirus Questions, Spyware problems, Linux and Windows Security, Black Hat SEO right down to Website Design and Multimedia
 
  Home Help Search Gallery Links Staff List Login Register  

Lightbox innerHTML

Pages: [1] 2 3 4 ... 17
  Print  
Author Topic: Lightbox innerHTML  (Read 13446 times)
Darksat
Administrator
Master
*******
Posts: 3303



View Profile WWW
« on: April 09, 2009, 02:07:30 pm »

As far as I remember some browsrs have problems implementing body.innerHTML, something about the paths.
You can do something uber simple like this very easily
Code:
<html><head><title>Darksat Box</title>
<SCRIPT LANGUAGE="javascript">
function go() {
if (light.style.visibility == "visible")
{
light.style.visibility = "hidden";
}
else
{
light.style.visibility = "visible";
}
}
</SCRIPT>

</head>
<body>
<INPUT TYPE="button" VALUE="show/hide" onClick="go();">
<SPAN ID="light" Style="Visibility:visible;">
<h1>Content</h1>
</SPAN>

</body>
</html>

Or check out another solution here.
http://www.emanueleferonato.com/downloads/lightbox.html
« Last Edit: April 09, 2009, 02:10:35 pm by Darksat » Report Spam   Logged

Pages: [1] 2 3 4 ... 17
  Print  
 
Jump to:  

Powered by EzPortal
eXTReMe Tracker
Security Forum
Bookmark this site! | Upgrade This Forum
SMF For Free - Create your own Forum


Powered by SMF | SMF © 2016, Simple Machines
Privacy Policy
Page created in 0.034 seconds with 10 queries.