Archive

Posts Tagged ‘html’

Printing a webpage

Sunday, June 24th, 2007

Webpage can be printed using window.print(). Here is the code:

[html]Print This Page[/html]

“return false” cancels the link to “webpage.html”.

When the hyperlink “Print This Page” is clicked, the page is printed if the printer is already installed.

Underline on mouse rollover

Wednesday, March 14th, 2007

Underline on mouse rollover

There are two ways of achieving this functionality

1. Javascript
2. CSS

Javascript:
By using “onmouseover” and “onmouseout” events which calls two user defined functions “blockStyle(‘param’)” and “displayStyle(‘param’)”,where param is a unique id for that hyperlink when the event occurs.
Eg. click here

CSS:
By using hover.
Write this source code in the css file.
a:hover
{
text-decoration:underline;
color: blue;
}
This above code will affect all the hyperlinks(anchor tag) in the same webpage.

Recent Comments

  • Stanford Reach: Great post. Thanks!
  • Shu Crunk: I was simply browsing for useful blog articles intended for a project research and I happened to stumble...
  • Marya: Hey rather wonderful weblog!! I’ll bookmark your weblog and grab the feeds conjointly…
  • John Vay: ive just started my own hosting company its such hard work haha :P
  • write a good resume: Your the best!