Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

place the cursor over


alex007f

Recommended Posts

It's javascripting...

 

The mouseover script is

 

<script language="JavaScript" type="text/javascript">

function funOnMouseOver(imgType,objThis)

{

switch(imgType)

{

case "1"://book

objThis.src="/thriftimages/AnotherImages/header_r3_c2_f2.gif";

break;

case "2"://movie

objThis.src="/thriftimages/AnotherImages/header_r3_c7_f2.gif";

break;

case "3"://music

objThis.src="/thriftimages/AnotherImages/header_r3_c5_f2.gif";

break;

case "11"://game

objThis.src="/thriftimages/AnotherImages/header_r3_c9_f2.gif";

break;

}

}

 

function funOnMouseOut(imgType,objThis)

{

switch(imgType)

{

case "1"://book

 

objThis.src="/thriftimages/AnotherImages/header_r3_c2.gif";

break;

 

case "2"://movie

 

objThis.src="/thriftimages/AnotherImages/header_r3_c7.gif";

break;

 

case "3"://music

 

objThis.src="/thriftimages/AnotherImages/header_r3_c5.gif";

break;

 

case "11"://game

 

objThis.src="/thriftimages/AnotherImages/header_r3_c9.gif";

break;

}

}

function funNewredirect(imgValue)

{

var strPath;

strPath ='http://' + 'www.thriftbooks.com' + '/BestSeller.aspx';

 

switch(imgValue)

{

case "1":

window.location.href=strPath + "?Media=1";

break;

case "2":

window.location.href=strPath + "?Media=2";

break;

case "3":

window.location.href=strPath + "?Media=3";

break;

case "11":

window.location.href=strPath + "?Media=11";

break;

}

}

 

</script>

 

There are some great tutorials out there if you want to write your own...

 

Which site do you want to do it on?

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...