Page Detail Scripts - Page 5 | JavaScriptSource

Page Detail Scripts - Page 5

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.

  • Page Extension
    Sep 9, 2000

    Displays a message based on the extension (like .html) of the web page. And, it is a breeze to add more file types to the script.

  • Page Scroller
    Brian Gosselin Sep 9, 2000

    Placing the cursor on the page's up or down arrows located in the bottom right corner of the browser window will automatically scrolls the page. Cool!

  • Page Up For
    Sep 9, 2000

    JavaScript can even display how long your web page has been online. Just enter the date, the script does the calculations, and prints out the time. It has a very nice readout and looks very professional!

  • Page Variable
    Sep 9, 2000

    Not exactly the most used script, but this one allows you to reference the page name in a variable. Instead of, you can use this script to create a variable that stores index.html for your use! You can use it with alerts, document.write, etc. Take a look!

  • 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.

  • Preload Page
    Gilbert Davis Sep 9, 2000

    Displays a loading message as the page, including images and sound elements, are loaded in the background. When the page finishes loading the screen is shown, similar to how Macromedia's Flash plugin works. Easy!

  • Protect Images
    Sep 9, 2000

    (4.0+ browsers) Keep visitors from stealing your site images by right-clicking and then selecting "Save Image As..." This script will disable the right click on all the images on your site. Not foolproof, but helpful!

  • Reload on Resize
    Sep 9, 2000

    Useful for situations when a page resize moves the page elements improperly or causes JavaScript errors, which has been known to occasionally occur on pages with layers. As a solution, this script reloads the web page when the user resizes the page.

  • 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!

  • loader_frame.html
    Dec 31, 1969