Xoom3r Posted August 25, 2008 Share Posted August 25, 2008 Hey there, I don't really know the name of it or found any tutorials.. How to i create a box, that opens up when you click something? What do I mean.. example: This is a link <= when you press that link, a Div appears under the link and has things written in it Quote Link to comment https://forums.phpfreaks.com/topic/121261-opening-boxes/ Share on other sites More sharing options...
php_b34st Posted August 25, 2008 Share Posted August 25, 2008 I think you will need to use javascript for this, search for javascript changing css Quote Link to comment https://forums.phpfreaks.com/topic/121261-opening-boxes/#findComment-625138 Share on other sites More sharing options...
Xoom3r Posted August 25, 2008 Author Share Posted August 25, 2008 So what it does? like.. when click on link, it sets the CSS attributes that i want to the div, like.. border-width:0px; height:0px; etc.? Quote Link to comment https://forums.phpfreaks.com/topic/121261-opening-boxes/#findComment-625165 Share on other sites More sharing options...
php_b34st Posted August 25, 2008 Share Posted August 25, 2008 Yes It can change any attribute of the div and even text inside it. I have done this myself but am no expert on javascript I suggest you post in the javascript section of this site. Quote Link to comment https://forums.phpfreaks.com/topic/121261-opening-boxes/#findComment-625171 Share on other sites More sharing options...
DarkWater Posted August 25, 2008 Share Posted August 25, 2008 I personally like script.aculo.us for "advanced" effects, but you can just use simple Javascript for just "appearing" a DIV. There are plenty of tutorials. Quote Link to comment https://forums.phpfreaks.com/topic/121261-opening-boxes/#findComment-625176 Share on other sites More sharing options...
wildteen88 Posted August 25, 2008 Share Posted August 25, 2008 Yes It can change any attribute of the div and even text inside it. I have done this myself but am no expert on javascript I suggest you post in the javascript section of this site. Have a look at the following thread for the required JavaScript. Quote Link to comment https://forums.phpfreaks.com/topic/121261-opening-boxes/#findComment-625181 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.