Help - Search - Members - Calendar
Full Version: Umm....help with Javascript....
Forums > Resource Center > Webmasters' Corner > Webmasters' Corner Resolved Topics
xAzNxDragonReborn
Hi, i got the Add a Custom Module Javascript code and i m trying to put Gif image linkz in it instead of text but it doesnt work...WTF is wrong well thx....

CODE
<!-- begin code provided by createblog.com -->
<style type=text/css>
/* remove regular modules */
texttable.left, td.mainleft, table.left, table.navigation, table.search{display: none;}
table.blogbody tr td {width:0px; padding: 0px;}

/* edit to your liking */
table.module { border: 1px solid #FFFFFF; width:160px; background-image: url(http://img.photobucket.com/albums/v42/xaznxdragonreborn/RedBlaze.jpg);
 background-position: left center;
 background-repeat:no-repeat; }
table.module th { background-image: url(http://img.photobucket.com/albums/v42/xaznxdragonreborn/RedBlaze.jpg);
 background-position: left center;
 background-repeat:no-repeat;;font: bold 11px new roman times; text-transform: uppercase;color: #FFFFFF; border: none; }
table.module td {color: #000000; text-align: left; border: none; background-image: none; }
</style>

<!-- Here's your CUSTOM MODULE.. copy and paste as needed -->
<table border="1" cellspacing="0" cellpadding="4" width="100%" class="module"><tr><th valign="top" align="left" class="module"><b>CUSTOM MODULE</b></th></tr><tr><td valign="top" class="module">

<A HREF="http://www.xanga.com/home.aspx?user=xAzNxDragonReborn"> <TARGET="xAzNxDragonReborn's Xanga Link!"><IMG SRC="http://img.photobucket.com/albums/v42/xaznxdragonreborn/My-Link.gif"> <BORDER="0"></A>


</td></tr></table><br>



</td><td width="500" valign="top" align="left">
<!-- end code provided by createblog.com -->
<!-- end code provided by createblog.com -->
shortvi3tlaydee
not all custom modules let u have scripts most only have text
razbus
Okay, first of all... you dont need those "target" tags. They're not necessary. Just use alt tags. Same thing goes with that weird "border" tag you used. All that can go into the img tag..... like so:

CODE
<!-- begin code provided by createblog.com -->
<style type=text/css>
/* remove regular modules */
texttable.left, td.mainleft, table.left, table.navigation, table.search{display: none;}
table.blogbody tr td {width:0px; padding: 0px;}

/* edit to your liking */
table.module { border: 1px solid #FFFFFF; width:160px; background-image: url(http://img.photobucket.com/albums/v42/xaznxdragonreborn/RedBlaze.jpg);
background-position: left center;
background-repeat:no-repeat; }
table.module th { background-image: url(http://img.photobucket.com/albums/v42/xaznxdragonreborn/RedBlaze.jpg);
background-position: left center;
background-repeat:no-repeat;;font: bold 11px new roman times; text-transform: uppercase;color: #FFFFFF; border: none; }
table.module td {color: #000000; text-align: left; border: none; background-image: none; }
</style>

<!-- Here's your CUSTOM MODULE.. copy and paste as needed -->
<table border="1" cellspacing="0" cellpadding="4" width="100%" class="module"><tr><th valign="top" align="left" class="module"><b>CUSTOM MODULE</b></th></tr><tr><td valign="top" class="module">

<A HREF="http://www.xanga.com/home.aspx?user=xAzNxDragonReborn"> <IMG SRC="http://img.photobucket.com/albums/v42/xaznxdragonreborn/My-Link.gif" alt=""xaznxdragon's xanga link!" border="0"></A>


</td></tr></table><br>



</td><td width="500" valign="top" align="left">
<!-- end code provided by createblog.com -->
<!-- end code provided by createblog.com -->


That should work...
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.