PDA

View Full Version : minmize frame?????


Carlito
01-04-2008, 01:46 PM
Hi guys

how u doing??

i've some small project and i got some small problem during this project

my problem is:

look to the picture
http://www.y1y1.com/u/uploads1/b84bbac93c.jpg

when i click on the minimize icon (red circle) the "user's privileges" window or frame should be minimized and the icon (or the button) should turn to restore icon(or button)

the same thing should be processed to the (role's privileges)

i hope u can help me with this small problem

bu JavaScript or HTML or any languages

u r thanks in advance for anu solutions or suggestion

Mr.Carlito

Pegasus
01-04-2008, 02:09 PM
You can't do anything like that with HTML. You'd need to code that into your programme. I've moved the thread over to server-side because, from the looks of it, you're trying to adjust some sort of forum programme.

Peg

Carlito
01-04-2008, 02:30 PM
i dont want from u all the project i've done it already (mostly)

but all i need is the minimize

by the way, i got some code doing it using JS and HTML only



<html>
<head>
<script>
function show(){
if(document.all['MY'].style.display=="block"){
document.all['MY'].style.display="none"
}else{
document.all['MY'].style.display="block"
}
}
</script>
</head>
<body>
<p><img src="J:\\file_manager\\images7.jpeg" alt="CLOSE" onclick="show();"></p>
<p>&nbsp;</p>
<div id="MY" style="display: block;">HI WORLD</div>
</body>
</html>


but im not sure it will work with my project!!!!!

any help pls

Vege
01-05-2008, 08:41 PM
Youw basically found the idea how it's in 99% cases done.
Hide the div like you have done and change the source of the image from - to +
Is there specific problem in hand?