To register for an Internet.com membership to receive newsletters and white papers, use the Register button ABOVE.
To participate in the message forums BELOW, click here
PHPBuilder.com  
 

 

Go Back   PHPBuilder.com > Tools > Dreamweaver

Dreamweaver In need of help with Dreamweaver?

Reply
 
Thread Tools Rate Thread Display Modes
Old 01-07-2004, 02:33 PM   #1
frazi
Junior Member
 
Join Date: Jan 2004
Location: Malaysia
Posts: 1
layers / css

Hello
First of all, i would like to apologize if what im asking might be a bit silly, but i ask coz i dont know how to do it

1. how do you make design / layout using layer / css so that it could become like hirearchial display where it could be hidden or shown when you click on it?

as an example, here is an url where this has been done:
http://www.prestigen.biz/501.htm

look at the introduction to forex with the plus image at its side, and when u click the "+" image, the layer unwraps and u can see the content and when u click again the "-" image the layer will dissapear.

please help me. thank you.
my email is frazi@streamyx.com
frazi is offline   Reply With Quote
Old 01-07-2004, 02:44 PM   #2
leatherback
Beware: Crazy Scientist
 
leatherback's Avatar
 
Join Date: Mar 2002
Location: Oxford (UK work), Melbourne (AU work), Vreden (DE partner), Zutphen (nl parents)
Posts: 5,183
Hi,

Please remember that thsi is a PhP forum..

Anyway. the trick you saw there is done with a combination of javascript and css. When you click an element, this function is called:

<SCRIPT language=JavaScript>
function exd(o){
d = document.getElementById("gd" + o)
i = document.getElementById("pl" + o)
if(d.className=="gd"){
d.className="gde"
i.src="images/m.gif"}
else{
d.className="gd"
i.src="images/p.gif"
}

(Yes, i copied it from their source code).

J.
__________________
- Codes provide logic/technique, not full working solutions
- Use: or die(mysql_error()) after each query and safe a headache
- use print_r($variable) to see the values in an array
------------------------
latest project|me|Coding tips
syntax editor|Get your question answered
leatherback is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT -4. The time now is 01:35 PM.






Acceptable Use Policy

internet.comMediabistrojusttechjobs.comGraphics.com

WebMediaBrands Corporate Info


Advertise | Newsletters | Feedback | Submit News

Legal Notices | Licensing | Permissions | Privacy Policy


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.