RSS

Archive | Javascript RSS feed for this section

Javascript Drop Down Menu

28. October 2008

0 Comments

Have you got lots of things you need to cram into your nav bar? The best way to solve this problem without making your web page look messy is to arrange everything into drop down menus. This tutorial will show you how to do this using javascript from the Spry framework. You can view a demo [...]

Continue reading...

Text Box - Onclick Select All Text

28. October 2008

4 Comments

Have you ever seen those text boxes which when you click on them all the text is highlighted? A bit like the one on this page where it says support this site. This is achieved through javascript. And a very small ammount of javascript at that. Do do this we will first need to place the javascript [...]

Continue reading...

Javascript Bookmark/Favourite Link

30. September 2008

0 Comments

Using this tutorial you can create a link which when clicked the page will be bookmarked. First thing to do is to put this code in between the <head> tags: <script><!– function bookmark(url,title){ if((navigator.appName == “Microsoft Internet Explorer”) && (parseInt(navigator.appVersion) >= 4)){ window.external.AddFavorite(url,title); } else if(navigator.appName == “Netscape”){ window.sidebar.addPanel(title,url,”"); } else{ alert(”Press CTRL-D (Netscape) or CTRL-T (Opera) to bookmark”); } } // –></script> Then put this link in your page [...]

Continue reading...