|
|
Free Javascript Samples
Add dynamic javascript samples to your website. |
JavascriptJavascript runs on your visitor's web browser provided they have it enabled. Most do. Javascript responds to events like a mouse moving over an image or link, the page loading, a button click etc. <script language="Javascript"> Image Search Selection CodeThis gives a list of celebs to choose from. Clicking on show pics opens a new window with image search results from Yahoo! It's easy to add or modify the list of celebs with your own selection. Please retain the link-back to Urgentclick.com when using this script :-) |
Mouse-over effectsUse this code to display a message in the status area of the web browser when a mouse hovers over a hypertext link. <a href="mypage.html" Display the date and time.<script type="text/javascript"> Alert the visitorThis code pops up an alert box when your page loads. <script type="text/javascript"> Javascript Popup Window<script type="text/javascript"> Javascript Close Window
This code:
Javascript Frame EscapeThis code makes a page jump out of a frame. It helps stop other sites framing a page. Meta Tag to stop Robots Crawling and Indexing a Page<META NAME="robots" CONTENT="noindex"> Javascript Pop Behind WindowThis code makes a pop-up window hide behind the main window. It does this by popping up a window which normally gets focus and then returning the focus back to the original page. Javascript Referring Website URL Redirect / BlockerThis code checks the referring website URL against a list of strings. If any of the strings are contained in the URL then the browser is redirected to another web page. This is useful where another site is deeplinking to a page and you don't want it to happen for example. Edit the sites array with your own list of strings. In this example, any visitor from a page on msn.com would be redirected to another-page.html Also, any visitor from a page with deeplink in the url would be redirected. |