Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Putting categories in individual cells?


agiftcodotcom

Recommended Posts

I would like to know if it's possible to make the categories create their own table cells. The reason for this being, I want to make my categories appear similar to THIS

 

 

if you add this to your header..

<script language="JavaScript1.2">
<!-- Distributed by Hypergurl http://www.hypergurl.com -->

function changeto(highlightcolor){
source=event.srcElement
if (source.tagName=="TR"||source.tagName=="TABLE")
return
while(source.tagName!="TD")
source=source.parentElement
if (source.style.backgroundColor!=highlightcolor&&source.id!="ignore")
source.style.backgroundColor=highlightcolor
}

function changeback(originalcolor){
if (event.fromElement.contains(event.toElement)||source.contains(event.toElement)||source.id=="ignore")
return
if (event.toElement!=source)
source.style.backgroundColor=originalcolor
}
</script>

 

And this to your categories.php

<table border=1 bgcolor="D2000F" onMouseover="changeto('A10012')" onMouseout="changeback('D2000F')">

 

You can almost get THIS result. The only reason I say almost is because all of the categories are in the same cell right now. Is there a way to change that?

Contributions I used : Updated 06-13-04 23:42

----------------

Vote on My Graphis Poll

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...