Jump to content

Help with osCommerce Website

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
1 reply to this topic

#1
Kaabi

Kaabi

    Learning Programmer

  • Members
  • PipPipPip
  • 56 posts
Hey guys, long time member, first time questioner-asker. I work for EastCoastAirsoft, and I need some help on doing something related to subcategories. For some of the main categories, I would like to hide the subcategories, but for others, I want them to remain viewable. When you click a main category anyway, the subcategories come up, so for some categories it is redundant. The reason I want to do this is for SEO purposes, and it would really help me out if someone could offer their assistance. Thanks!!

#2
toxifyshadow

toxifyshadow

    Programmer

  • Members
  • PipPipPipPip
  • 125 posts
Use onclick mabey? I think I get what you are trying to say.
You mean like you click a link and a bunch of other links pop up?
Just don't use onclick with a link, you'll just go to that link.
Try something like this:

<script type="text/javascript">

function writesubcategorys()

{

document.write("<a href="rtgrt0ttt.yyrth">Name</a>")

document.write("<br>")

//just repeat those two lines

//of code for every sub category

//then do this

}

</script>

<tag ONMOUSEOVER="writesubcategorys()">

Feel free to edit this all you want, the top is written in basic javascript.
Posted Image