Navigation Menu
Alphabetical Listing
Site Contents

Site FAQ
About JSS
JavaScript Forum
JavaScript Tutorial
Friends of JSS

Link to Us
JavaScript Help
Contribute a script
Technology Jobs

Become a Partner

Internet.commerce

Be a Commerce Partner














Internet.com

IT
Developer
Internet News
Small Business
Personal Technology

Search internet.com
Advertise
Corporate Info
Newsletters
Tech Jobs
E-mail Offers

Developer Channel

FlashKit.com
JavaScript.com
JavaScriptSource
Developer Jobs
ScriptSearch
StreamingMediaWorld
Web Developer's Journal
Web Developer's Virtual Library
WebDeveloper.com
Webreference
Web Hosts
XMLfiles.com

Great Sites

DocJavaScript.com
dhtml.com
The Freebie Directory
TheFreeSite.com

Browse Doc JS's Tips!


Hiermenus Central


Promotions

Free Announcements


Social Bookmark

General

Display a block of text, a graphic, or combination of both, by clicking on a link or a graphic. This script can be used in different circumstances, such as for informational purposes, or displaying pictures with captions. Very easy to use.


Apache | Linux | PHP

[ click on a link above for further information ]

The Apache Software Foundation provides support for the Apache community of open-source software projects.
Want to learn Linux? Have questions? Just Linux will get you started in the right direction to a superior operating system.
PHP is a widely-used general-purpose scripting language that is especially suited for Web development and can be embedded into HTML.

[ click on an image above for further information ]

The Apache Software Foundation provides support for the Apache community of open-source software projects.
Want to learn Linux? Have questions? Just Linux will get you started in the right direction to a superior operating system.
PHP is a widely-used general-purpose scripting language that is especially suited for Web development and can be embedded into HTML.

[ click on an image to see the big picture ]


Trying to move some dirt

Finally got the house built

A nice family shot

Notes

Source Code

Paste this source code into the designated areas.

External file

Paste this code into an external JavaScript file named: contentDisplay.js


CSS

Paste this code into your external CSS file or in the <style> section within the HEAD section of your HTML document.


Head

Paste this code into the HEAD section of your HTML document.


Body

Paste this code into the BODY section of your HTML document


User Comments

Add a comment, suggestion, or correction
[For questions about usage, consult the Notes tab above or visit the JavaScript forum. Do not include more than two (2) lines of code in your comments. If you have suggestions or corrections, you can submit them to us.]

    
   
       
[optional]
 
[optional]

   

Comments feed Comment Feed RSS 2.0

3. From: sharon
jumping page
04/08/2009 18:38:55

I had the same problem and correced it in basically the same mannor by placing an anchor:
<a name="advertising_services" id="advertising_services"></a> where I wish the page to display - it works perfect.

I think what happens is that when you place the display "box" divs well below the links to the display it moves back .

I love the script!

1. From: Ian
Page moves problem
02/24/2008 07:30:46

I have been trying to implement this fantastic little bit of code but when I click on the link to show the descriptive text, the browser goes up to the top of the page. I tried correcting this using the code <A name="#gohere"> which works fine but still the page moves even if only to the "gohere" place, which is near to the links and descriptive text.

Apart from this, it all works really well, but I can't really show the problem, except for a few minutes, because of using PHP includes and risking messing the site up.

2. From: Lee (Admin)
06/26/2008 11:20:38

I'm not sure what to tell you. As you can see, it works fine here. If you need additional help, you'll need to post your question over on the forums.


Do you write JavaScripts?
If you do, why not submit them to us?
We'll give you credit and a link back to your Web site.