...

View Full Version : Please help how to add mouseover button to my blog!



NetsOne
09-27-2009, 07:16 PM
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 !!!

VIPStephan
09-27-2009, 07:31 PM
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:



<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>

NetsOne
09-27-2009, 07:33 PM
thank you bro big help!!!!! :D:D:D

NetsOne
09-27-2009, 07:57 PM
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!



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum