Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Sep 2009
    Posts
    3
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Exclamation Please help how to add mouseover button to my blog!

    Hi!

    I have come across a cool generator wich generated this for me :

    <!-- STEP ONE: Insert this code into the HEAD section of your HTML document -->

    <SCRIPT LANGUAGE="JavaScript">
    <!-- Begin
    loadImage1 = new Image();
    loadImage1.src = "http://img98.imageshack.us/img98/2489/dlbuttonrapidshare002b.png";
    staticImage1 = new Image();
    staticImage1.src = "http://img98.imageshack.us/img98/4527/dlbuttonrapidshare002a.png";

    // End -->
    </script>

    <!-- STEP TWO: Insert this code into the BODY of your HTML document -->

    <span onmouseover="image1.src=loadImage1.src;" onmouseout="image1.src=staticImage1.src;">
    <img name="image1" src="http://img98.imageshack.us/img98/4527/dlbuttonrapidshare002a.png" border=0></span>

    ...But when i add the first step in after <head> ''Blogspot" shows me a error message like this -> Your template could not be parsed as it is not well-formed. Please make sure all XML elements are closed properly.
    XML error message: The element type "SCRIPT" must be terminated by the matching end-tag "". .... please tell me what to do i would like to have this for my blog really badly! thank you in advance !!!

  • #2
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,608
    Thanks
    6
    Thanked 997 Times in 970 Posts
    The opening script tage is written uppercase while the closing tag is lowercase. Since it’s talking about XML I suppose you have XHTML so I’d suggest you change the code to this:

    Code:
    <script type="text/javascript">
    // <![CDATA[
    loadImage1 = new Image();
    loadImage1.src = "http://img98.imageshack.us/img98/2489/dlbuttonrapidshare002b.png";
    staticImage1 = new Image();
    staticImage1.src = "http://img98.imageshack.us/img98/4527/dlbuttonrapidshare002a.png";
    
    // ]]>
    </script>

  • Users who have thanked VIPStephan for this post:

    NetsOne (09-27-2009)

  • #3
    New to the CF scene
    Join Date
    Sep 2009
    Posts
    3
    Thanks
    1
    Thanked 0 Times in 0 Posts
    thank you bro big help!!!!!

  • #4
    New to the CF scene
    Join Date
    Sep 2009
    Posts
    3
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Exclamation

    ok it works but i have another problem now! I want to use this download button in every post that i make and i noticed if i add the image again to a new post it stops working please tell me how to do this.

    i want to use this more then once :

    <span onmouseover="image1.src=loadImage1.src;" onmouseout="image1.src=staticImage1.src;">
    <img name="image1" src="http://img98.imageshack.us/img98/4527/dlbuttonrapidshare002a.png" border=0></span>


    Thank you again in advance!


  •  

    Tags for this Thread

    Posting Permissions

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