template help



             Graphic Applications for Designers and Developers

Webworksite Request Not Found

Web Templates

web templates

Photo Galleries

photo galleries


resources for designers and developers





Script Tips - Snippets

 (printable page)

Remove Underline from Links - To remove underlines from links on a page insert this between your <head></head> tags:
a { text-decoration: none }

Make a Hyperlink Open in a New Window - Insert target="_blank" in your code to open a hyperlink in a new window.

Pop-up window script - Edit JavaScript in a text editor (notepad, wordpad, etc...) with "no wrap" (script must be on one line), then put this in the head section of your HTML. Edit the code in red to your specifications. Most people hate pop-up windows so use them sparingly:

<SCRIPT LANGUAGE="javascript">
window.open ('pagename.htm','newwindow',config='height=340,width=200,titlebar=

Close window text - put this into your pop-up page: <a href="javascript:self.close();">Close</a>

Close window button - put this into your pop-up page body where you want the button to show:

<INPUT TYPE="button" VALUE="Close Window" onClick="window.close('fs')">

Set No Borders on the page - To make your tables, sliced images or text display flush with the page on a fixed width table, insert this right after your <body tag: TOPMARGIN="0" LEFTMARGIN="0" MARGINHEIGHT="0" MARGINWIDTH="0". The last two will make it work for NetScape. You can also use rightmargin="0" and bottommargin="0" on a 100% set width page if desired.

To hide your files from robots, search and spiders - Put them into a folder name starting with an underscore. Example:  _private or use meta tags on individual pages:
<meta name="ROBOTS" content="index,no">

Print Link on a web page - <a href="#" onClick="window.print()">Print this page</a>

Creating download links - You can zip up any file with a free utility or WinZip if you have it. Import the file into your web and link to it on a page. When someone clicks on the link, a browser dependent download box will automatically display.

Problems with page viewing in NetScape - If the page won't display at all, make sure you have the ending HTML tag on the page </HTML>. To control the size of the page display, use tables with a fixed width (not percentage). Remove <span> tags for NS6 incompatibility with spacing issues.

Automatically redirect page - Place between <HEAD></HEAD> tags:
 <META HTTP-EQUIV="Refresh" CONTENT="5;URL=http://www.yoursite.com/index.htm">
number is the number of seconds before going to URL you specify.

Reload Page Button - Put into the page where you want the button to appear:
<INPUT TYPE="button" value="Reload!" onClick="window.location.reload()">

The 'no right click' script - Is absolutely useless. There is no way to keep someone from copying your images or anything that is published on the web. The 'PrintScrn' button will copy anything seen on the monitor from any page or Flash file. Any page on the internet can be found in the browser cache regardless of this useless script. Any page code can be viewed from a copied page in any editing program regardless of this script. Digital watermarking is a valid solution for graphic professionals. The copyright laws are your protection against violation of unauthorized use of your copyrighted material.

Disable Image Toolbar in IE - Put this in your <head> tags:

<META HTTP-EQUIV="imagetoolbar" CONTENT="no">
<META HTTP-EQUIV="imagetoolbar" CONTENT="false">

Display font in pages exactly as created - Embed Fonts in Your Web Pages with WEFT3 http://www.microsoft.com/typography/web/embedding/weft3/ (not recommended) or make optimized images of the font for your page headings, title, etc..., if you only have a few headings or sub-titles.

Disable Smart Tags - Smart tags may be working for users of Office XP, including FP 2002 and IE 6 when enabled. To prevent them from being used on your pages insert this code between the <HEAD> </HEAD> tags :

<meta name="MSSmartTagsPreventParsing" content="true">

Change the colors of your scrollbars - edit the code (colors) in notepad, put into your page <head> section:


Remove link dots from hyperlinked images - To remove the dots around the edges of your image links when clicked on, put this piece of code on the image hyperlink:

example: <a href="http://webworksite.com/digital/" onfocus="this.blur()"



Script Tips
Open Source Flash



Web Templates  |  Flash Templates  |  Business Templates  |  Personal Templates  |  Art & Photography Templates
Terms of Use  |  Privacy  |  Sitemap  |  Links  | 

copyright © 1998-2006 webworksite.com