Page Detail Scripts - Page 4 | JavaScriptSource

Page Detail Scripts - Page 4

These scripts all deal with Page Detail JavaScripts. There are several scripts that do make a site more pleasant to visit. You can write the time a visitor entered the page, how long they've been there, write when the page was last updated, whether it was updated since you last visited, and lots more! They are very difficult to write - just look at the code. General questions about page detail JavaScripts here should be posted to The JavaScript Forum.

  • Arrow Links
    Sep 9, 2000

    This neat little JavaScript will indicate which link is selected with a little arrow image. Hard to explain, but you'll understand when you see it! Very cool!

  • Bookmark Us!
    Sep 9, 2000

    (Internet Explorer Only) Allow your visitors to click one text link to quickly and easily add your site to their "Favorites." Don't let your visitors lose you because they forget to bookmark your site! (Netscape Users won't get any errors, but instead of the bookmark link, see a message reminding them to bookmark the site)

  • Born On Date
    Sep 9, 2000

    In place of the boring 'Last Updated' script, you can use this script. It does everything and more - it gives the page title, the day the page was last updated, and if the page has been updated since the visitor's last visit all in a cool little table!

  • Break Frames
    Sep 9, 2000

    If a visitor comes to your site and is looking through frames, this script will automatically make the page 'break out' of frames. As an added bonus, it's only 8 lines of script!

  • Check URL
    Sep 9, 2000

    This script is particularly useful for those who have their site on a free webspace provider, then use a "" redirecting service. What this script will do is analyze the URL the visitor is at, and if they did not came to your site via the redirecting URL, it can print out a message telling them that is your new URL. Neat!

  • Click Sound
    Nicholas Loar Sep 9, 2000

    Plays a .MID sound file when the user clicks a link. Neat!

  • Close Window
    Sep 9, 2000

    JavaScript can close a window when you push a button or click a text link. Super-short script too!

  • Color Chart
    Sep 9, 2000

    JavaScript can print out 8 tables with the 512 "standard" colors and their corresponding "#RRGGBB" values. This sure makes picking colors easy! Wow!

  • Color Picker
    Luis Romero Sep 9, 2000

    Uses an imagemap to allow you to select any color box and see the hexadecimal html value for that color.

  • Content Protector
    Ronnie Moore Sep 9, 2000

    If your content page is loaded directly (not in frames) the page is reloaded in your frames. And to the aid of webmasters everywhere, this script also foils other sites loading your content page in their frames. Visitors are notified of the bandwidth theft then are sent to the page on your site (if used with our Dynamic Frameset script) or back to your main page.

  • Page Viewed Date
    Sep 9, 2000

    I think it's always interesting to see some information about the page itself. This JavaScript will write out when the page was viewed, according to the visitor's clock.

  • Resizable Viewer
    Sep 9, 2000

    Displays a small 'image loading' picture while the main image is loading. When the image completes, the viewer window is appropriately resized, centered on the screen, and 'image loaded' is displayed. Neat!

  • Restore Focus
    Sep 9, 2000

    Sends the focus to a window by putting it on top of the other open windows. Useful if you need to open a window but keep another window on top! It can even send the focus once every certain number of seconds, neat!

  • Right Click Menu
    Sep 9, 2000

    (Internet Explorer Only) Displays a menu when the visitor right click's on the page. You can easily use style sheets to modify the menu 'skins', or write your own. Awesome!

  • Roman Numerals
    Dougie Lawson Sep 9, 2000

    This script helps you write the copyright statements on your page. It outputs the correct Roman Numerals for any year you want, including the current year. Clever!

  • Share A Page
    Sep 9, 2000

    If you would like to have several sites sharing one 'contact us' page, you can! Each site can link to the same page (but each with a unique string) and the appropriate site's information will be highlighted yellow in the contact table. For example, If they clicked on the 'contact us' link on the real estate page, the table cell with the real estate contact email address will be highlighted yellow instead of white on the contact us page. Clever!

  • Thumbnail Viewer
    Anders Jennerberg Sep 9, 2000

    Save page space by opening a new window to display larger images on your site when a thumbnail image or a picture text link is clicked. The same window is re-used when the images are the same size. Cool!

  • Time Box
    Chris Englmeier Sep 9, 2000

    This is a neat little script that makes your web page look a whole lot more 'professional'. This JavaScript will display a small box with the time the visitor loaded the page.

  • Time Greeting
    Robert Ison Sep 9, 2000

    Don't just welcome your visitors anymore, JavaScript can write good morning, good evening, or good afternoon based on the time the page was loaded, according to the user's system clock. Neat!

  • Time On Page (Alert)
    Sep 9, 2000

    If you want to show your visitors how long they have been on your page but don't exactly like those clock displays, then you might like this script. When the visitor leaves or clicks the button, they are alerted to the time they have been on your page. Many times, they won't even expect it!

  • Time On Page (Clock)
    Sep 9, 2000

    Occassionally, it might be interesting to show the visitor how long they have been on your page. So, you can use this script to write a clock to the screen that will tell them exactly that!

  • Time on Page (OnUnload)
    Max Harris Sep 9, 2000

    When someone visits your web page, JavaScript will start the clock. When the leave that page, they will be alerted with the time they have been viewing the page! Cool!

  • Time On Page (Seconds)
    Sep 9, 2000

    If the other time on page scripts seem too impersonal for you, this could be your solution. Instead of the 00:00 readout, it displays 'X Secs'. Just another wonder of JavaScript....

  • Top Window
    Sep 9, 2000

    Use this JavaScript to keep a window 'on top' of the rest of your other windows. Not sure what I mean? Try it out and see!

  • Week Day Image
    Sep 9, 2000

    Displays a new image every day of the week. For example, it displays monday.jpg on Monday, tuesday.jpg on Tuesday, etc. You can also change what image is shown each day. Easy!