|
Tips
and Tricks
Here
I will show you how to do some of those simple, but effective HTML and
Java script tricks.
1.
How to underline a hyperlink on mouseover
|
Example
CosmicFlame.com
has this feature.
|
Code:
<STYLE
type="text/css">
<!--
a {text-decoration: none}
a:hover {text-decoration:underline}
-->
</STYLE>
Put
this between the <HEAD> & </HEAD> at the top of your
html page
|
2.
How to keep the background fixed
|
Example
SuperSearch
has a fixed background
Click
Here
|
Code:
bgproperties="fixed"
Put
this in the <BODY ...> at the top of your html page. This
only works in IE.
|
3.
Image change on mouseover
|
Example
CosmicKingdom.com
|
Code:
<CENTER><IMG
SRC="ukicon.gif" NAME="ukkicon" HEIGHT=15 WIDTH=25>
<A HREF="http://www.cosmickingdom.com"
onMouseOver="document.ukkicon.src='spintick.gif'"
onMouseOut="document.ukkicon.src='ukicon.gif'">
CosmicKingdom.com</A></CENTER>
You
can see that by adding a few bit's of code that you can choose
which picture to have and which to loadover.
|
4.
Opening new windows
|
Example
Click
Here to open CosmicPerl in a new window
|
Code:
target="_default"
Put
this in the <A ...> after the html link
To
open a new window using java script on page load use the code
<script
language="JavaScript">
window.open("http://ukzone.hypermart.net/banner2.html")
</script>
|
5.
Getting out of other peoples frames
|
Example
Click
Here to open CosmicPerl out of any frames
|
Code:
target="_top"
Put
this in the <A ...> after the html link
|
6.
Doing all that other great stuff you see on websites
A lot of the coolthngs you find on websites are probably done using
CGI/PERL scripts. Take a look at the scripts in Lyles Script Archive
to see a selection of what CGI can do for your website.
|