Results 1 to 4 of 4

Thread: Javascript Help

  1. #1
    Join Date
    Nov 2010
    Location
    Bangalore
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Javascript Help

    I have added
    Code:
    <a href='javascript: submit_form();' class='ask_qns' ></a>
    Instead of form submit button. And I have add hover effect through css.
    That code is like
    Code:
    .ask_qns
    {
    	float:left;
    	width:366px;
    	height:34px;
    	background-image:url(images/home_askqn.jpg);
    	background-repeat:no-repeat;
    
    	}
    
    .ask_qns:hover
    {
    	float:left;
    	width:366px;
    	height:34px;
    	background-image:url(images/home_askqn_h.jpg);
    	background-repeat:no-repeat;
    }
    The problem is like for first time after loading the page mouseover effect is not coming. Button is disappearing for the first time of execution. After that its coming fine...
    Please help me to solve this problem.

  2. #2
    Join Date
    Nov 2006
    Location
    chertsey, a small town 25 miles south west of london, england.
    Posts
    1,920
    Thanks
    2
    Thanked 267 Times in 262 Posts

    Default

    Hi there Jis Anup,

    your problem can be resolved by the use of the single image rollover method.

    Further reading:-

    To get you started check out the attachment for an example that is similar to your original code.
    &#160;
    &#160;
    coothead

  3. #3
    Join Date
    Nov 2010
    Location
    Bangalore
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thank You so much

  4. #4
    Join Date
    Nov 2006
    Location
    chertsey, a small town 25 miles south west of london, england.
    Posts
    1,920
    Thanks
    2
    Thanked 267 Times in 262 Posts

    Default

    No problem, you're very welcome.

Bookmarks

Posting Permissions

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