Ina Code Blog

bunch of code in one place
Nov
18

Go to previous page with JavaScript

Posted by admin in tips

Here is a simple JavaScript solution how to go back to the previous page.

HTML code:

<a href=”javascript:history.go(-1)”>back</a>

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

Nov
14

Insert favicon to your web page

Posted by admin in tips

What is a favicon? A favicon is a small 16×16px image that appears next to the URL of your web page in browser location bar and bookmarks.

  1. Create favicon.ico (create .gif or .jpg image and rename it to .ico) .
  2. Insert the following HTML code inside the <head> tag of your web page:

    <link rel=”shortcut icon” href=”favicon.ico”>

That’s it!

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

Oct
18

Lightbox/ThickBox/GreyBox under Flash object

Posted by admin in tips

Are you using LightBox and Flash object on your site? The problem appears when you open LightBox and your Flash object appears above the pop up.
There is a simple solution to your problem!

Place the following code in your object parameters:

<param name=”wmode” value=”transparent”></param>

Also add this code to <embed> tag:

wmode=”transparent”

That’s it! Flash should now be hidden under LightBox with the rest of the page.

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]