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 the title of a link in an easy-to-read box. Quick response time and very easy to implement!

Just hover over the links below to see it work.


Ma quande lingues coalesce, li grammatica del resultant lingue es plu simplic e regulari quam ti del coalescent lingues. Li nov lingua franca va esser plu simplic e regulari quam li existent Europan lingues. It va esser tam simplic quam Occidental: in fact, it va esser Occidental. A un Angleso it va semblar un simplificat Angles, quam un skeptic Cambridge amico dit me que Occidental es.

Notes

Source Code

Paste this source code into the designated areas.

External file

Paste this code into an external JavaScript file named: nicetitle.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


Other

Download the images using the URL below:

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

8. From: Felicia Forbes
width control of box
11/25/2008 18:06:56

Hi there
This javascript is exactly what I wanted but I'm not having any luck reducing the width size of the background. My client would like the text to wrap around and have the box width shorter. I have tried doing this in the css and the javascript but to no avail. Can you please assist? Thanks very much.

9. From: Lee (Admin)
01/16/2009 10:39:41

In the CSS portion, under "div.nicetitle", changing the width size should do it.

6. From: Lee
02/13/2007 14:25:22

Ed,

You can have the entire script e-mailed to you, if you like. Just use the box below.


5. From: Ed
02/12/2007 08:23:47

I was wondering, is there a zip for this where everything can be in it

4. From: melanie
01/18/2007 01:34:57

I had recently been looking for just such a code! Will have to go back and implement!

3. From: Sam Slim
01/15/2007 22:32:23

why resort to a flakey browser detect when you have used a better method elsewhere in the same code?

if(isNaN(window.scrollX)){alert('use scrollX!')} else {alert('don't use scrollX!')}


2. From: chris
01/13/2007 04:25:05

this is a great tool have been wanting one for ages, good work

1. From: vikas kumar
01/06/2007 00:59:29

how can i display only information. In your code it shows extra text like url. So please give me the solution by which i could remove extra text. i hope you will respond me.

7. From: Sitework6
removing urls
07/20/2008 22:28:08

To remove the urls and only show the title of the link in Nicetitles:

In the css file, add 'display:none;' to div.nicetitle p.destination

in js file change 'h_pixels = h*6; t_pixels = t*10;' to
h_pixels = h*1; t_pixels = t*6;

This will shorten the length of the background image.


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.