Computing.Net > Forums > Web Development > Those expandable things!

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Those expandable things!

Reply to Message Icon

Name: simonscholey
Date: August 23, 2006 at 09:07:38 Pacific
OS: Windows XP Professional S
CPU/Ram: AMD Athlon XP 2800 1Gb
Product: Home Built
Comment:

Apologies for the subject! I am looking for some information on how to make those expanding bullet points in webpages. i've seen them in microsoft help files so you can find out more about something.

does anybody know what im talking about! more importanly can anybody help me to incorporate them into my site?

thanks in advance

MSI KT4AV-L
AMD Athlon XP 2800
1Gb Crucial 3200 DDR
160Gb Seagate Barracuda
ATI 256Mb 9600XT
16x DL DF DVD/RW
16x DVD ROM
9-in-1 Flash Media FDD
Windows XP Pro/Vista Beta 2



Sponsored Link
Ads by Google

Response Number 1
Name: Michael J (by mjdamato)
Date: August 23, 2006 at 12:47:40 Pacific
Reply:

What you are referring to is one of many things that can be accomplished with DHTML (Dynamic HTML). You can achieve it through a combination of HMTL, CSS and JavaScript.

Here is an example. Copy the code below into an html document (replace the [] with <>).

----------begin Example-----------
[html][head][/head]

[body]

[script language="javascript"]
function displayDiv(id) {
divObj = document.getElementById(id);
if (divObj.style.display=='inline') {
divObj.style.display = 'none';}
else {divObj.style.display = 'inline';}
}
[/script]

[div id="testDiv" style="display:inline;"]
This content will appear/disappear when you click the link below
[/div]
[br][br]
[a href="#" onClick="displayDiv('testDiv')"]Click Me[/a]

[/body]
[/html]

Michael J


0
Reply to Message Icon

Related Posts

See More


About becoming a web host... Problem with Java in Drea...



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Web Development Forum Home


Sponsored links

Ads by Google


Results for: Those expandable things!

Protecting Website(HTML) www.computing.net/answers/webdevel/protecting-websitehtml/1499.html

HELP! Things get outta postion! www.computing.net/answers/webdevel/help-things-get-outta-postion/1641.html

Need advice of which Web technology www.computing.net/answers/webdevel/need-advice-of-which-web-technology/885.html