Results 1 to 1 of 1

Thread: Javascript not working for liquid css button

  1. #1
    Join Date
    Oct 2010
    Thanked 0 Times in 0 Posts

    Default Javascript not working for liquid css button

    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;
    padding: 10px;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 14px;
    .btn {
    float: left;
    clear: both;
    background: url(images/btn_left.png) no-repeat;
    padding: 0 0 0 10px;
    margin: 5px 0;
    .btn a{
    float: left;
    height: 40px;
    background: url(images/btn_stretch.png) repeat-x left top;
    line-height: 40px;
    padding: 0 10px;
    color: #fff;
    font-size: 1em;
    text-decoration: none;
    .btn span {
    background: url(images/btn_right.png) no-repeat;
    float: left;
    width: 10px;
    height: 40px;
    .btn_addtocart { background-color: green; }

    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="javascript:return FunctionName()>

    Can i have a similar css for using this javascript?
    Last edited by arc_85; 10-20-2010 at 10:17 AM.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts