Javascript not working on liquid css button
Posted: 20 October 2010 12:41 PM   [ Ignore ]
Newbie
Rank
Total Posts:  3
Joined  2010-10-20

I have a web application but need to introduce various themes in it. So i used liquid css buttons so that images used for buttons are less and take minimum time to load.
But later i found that javacript:return functionname() doesnt work in it.
Please find the css code to find a solution for the same.

body {
margin
0;
padding10px;
font-familyVerdanaArialHelveticasans-serif;
font-size14px;
}
.btn {
float
left;
clearboth;
backgroundurl(images/btn_left.pngno-repeat;
padding0 0 0 10px;
margin5px 0;
}
.btn a{
float
left;
height40px;
backgroundurl(images/btn_stretch.pngrepeat-x left top;
line-height40px;
padding0 10px;
color#fff;
font-size1em;
text-decorationnone;
}
.btn span {
background
url(images/btn_right.pngno-repeat;
floatleft;
width10px;
height40px;
}
.btn_addtocart { background-colorgreen
HTML code:

<
div class="btn btn_addtocart"><a href="#>Submit</a><span></span></div>
<div class="
clear"></div>
Background Color: Red 

The existing application uses
<input type=“image” onclick=”[removed]return FunctionName()>


Can i have an alternative javascript to work on above css code??

Profile