Wednesday, 30 November 2011

OPEN NEW WINDOW WITH HYPERLINK

This JavaScript will open a new browser window when you click on the hyperlink. You can also change the optional settings you want depending on how you want the new window to display in the browser. 1 = Yes and 0 = No for displaying purposes.




ASP Web Pro







Open New Window




http://www.aspwebpro.com/javascripts/windows/opennewwithhyperlink.asp

OPEN NEW WINDOW AUTOMATICALLY

This JavaScript will open a new browser window automatically when your web page is accessed. You can also change the optional settings you want depending on how you want the new window to display in the browser. 1 = Yes and 0 = No for displaying purposes.




ASP Web Pro







Open New Window




http://www.aspwebpro.com/javascripts/windows/opennewautomatic.asp

TEXT ROLLOVER

This JavaScript displays a simple text rollover like the ones you see on our main menu:




ASP Web Pro






Your Text Here




http://www.aspwebpro.com/javascripts/rollovers/textcolor.asp

DISBALE RIGHT-CLICK

If you want to deter users from copying the content from your website, this script will disable the right-click function on the users mouse. Of course, we say this is only a deterant because the user can change the settings in their browser and get around this. At least it helps to deter novices from stealing your work.


ASP Web Pro










http://www.aspwebpro.com/javascripts/miscellaneous/disablerightclick.asp

PAGE BREAK

It is often necessary to insert page breaks into your web pages so that users can print your information without data or images running off of one page to another. Using this simple JavaScript, "Page data 1" will print on page 1 and "Page data 2" will print on page 2.


ASP Web Pro




Page data 1


Page data 2





http://www.aspwebpro.com/javascripts/miscellaneous/pagebreak.asp

PRINT THIS PAGE

There are a lot of websites that contain information that users want to print. If you have a page that is printer friendly, why not include a print button or link for the user. Just paste the below code into your page where you want your print option to appear.


ASP Web Pro









http://www.aspwebpro.com/javascripts/miscellaneous/printthispage.asp

CLOSE WINDOW

Many websites use popup windows that display while you are surfing their website. They are very commonly used for displaying advertisements. They are also often used for site Help files, short surveys, and a few other things. Well, if you are going to use a popup window on your website, it is proper netiquette to include a close window button or link within the popup window. All you have to do is choose if you want to display a close window button or link and paste the one line of code below into your page. It just doesn't get any easier than that!


ASP Web Pro





or Close Window





http://www.aspwebpro.com/javascripts/miscellaneous/closewindow.asp