03-08-2008, 02:29 AM
|
#7 (permalink)
|
|
The Prestige
Join Date: Sep 2007
Location: Sweden, Stockholm
Posts: 1,080
Thanks: 115
|
Well, I got like this right now:
Clicking it will with javascript open it to this:
HTML Code:
<div id="splash">
<img id="img1" onclick="toggle();" src="img/splash-close-left.png" border="0" style="float: left; margin-top: 1px;"/><div id="content"></div><img id="img2" onclick="toggle();" src="img/splash-close-right.png" border="0" style="float: left;"/>
</div>
Code:
body {
background-color: #464646;
}
#content {
width: 0px;
float: left;
}
javascript Code:
function toggle() { var content = $('content'); var width = content.getStyle('width').toInt(); if(width != 400) { expand(); } else { contract(); } }
And right now, it's kindof working exactly like I want it... only that it's not centered =// How would I center this?
__________________
|
|
|
|