View Single Post
Old 08-17-2004, 03:28 PM   #1 (permalink)
tannhauser
Inactive
 
Join Date: 08-17-04
Location: Manchester, UK
Posts: 10
iTrader: 0 / 0%
Latest Blog:
None

tannhauser is liked by many
Can I get Javascript to use a .css stylesheet?

I run a shop, which uses Shopsite. A feature of their most recent upgrade is a 'mini cart' - where the contents of your cart is displayed... wherever you want it. I've played around with the Javascript and found it works perfectly. I just pasted the code into a table cell.

Shopsite is really designed to be used fully - database driven - but does offer the ability for you to just add 'buy' links to any web page. This is what I do (although I still get a lot of the functionality). If the Java was pasted in the way they intended (into their templates), you get to specify 'includes' and to call .css styles, and I imagine it would respond to the variables - which it is currently ignoring!

Is there any way to get a simple Javascript to recognise my stylesheets? And how do I stop the script calling on my 'page properties' instead? I only want to apply three basic styles (heads, cart contents and subtotal).

I should say, before anyone say 'Can I see the shop?'... it sells adult merchandise.

If anyone thinks they can help, but it's "work", please let me know if I should take this to the 'Marketplace" (I'm new here).
tannhauser is offline   Reply With Quote