Author |
Topic |
|
Mark Priest
VP-CART Expert
United Kingdom
580 Posts |
Posted - October 01 2012 : 05:16:51
|
Hi All
I'm trying to get a watch video link to only show when the video is in the database, but because the link has two variables in it, the video [level3] and a link to the ext description [catalogid] i cant use the $ trick.
I'm trying to do it with javascript but not having much luck.
The first bit works, but I can't get it in the URL.
<script type="text/javascript"> var videoObj=new Object(); videoObj.catid="[catalogid]"; </script> $<a href="shopexd.asp?id=javascript:videoObj(catid)" id="[level3]"><img src="/images/icons/video.gif" alt="watch video of this firework" width="105" height="48" border="0" /></a>
Regards,
Mark Firework Crazy |
|
manilow
VP-CART New User
France
134 Posts |
Posted - October 01 2012 : 09:29:28
|
Hi Mark,
I can't really see what you would like to obtain. Could you show the type of URL with video, and one without video?
Regards,
Erik www.aquathermia.com |
|
|
Mark Priest
VP-CART Expert
United Kingdom
580 Posts |
|
manilow
VP-CART New User
France
134 Posts |
Posted - October 01 2012 : 10:19:48
|
Mark,
If you want to display an image with a link to shopexd.asp when a video of that particular product is specified in level3, the following line would do. Insert [level3] in the same line:
$<a href="shopexd.asp?id=[catalogid]"><img src="/images/icons/video.gif" alt="watch video of this firework" width="105" height="48" border="0" title="[level3]" /></a>
If you want to display the link in all cases but add level3 when it contains information, you could define a link in your template on separate lines:
<a href="shopexd.asp?id=[catalogid]"><img src="/images/icons/video.gif" alt="watch video of this firework" width="105" height="48" border="0"
$ title="[level3]"
/></a>
I used the TITLE tag just for example, but it could be any other tag.
I hope this will help.
Erik www.aquathermia.com |
|
|
Mark Priest
VP-CART Expert
United Kingdom
580 Posts |
Posted - October 01 2012 : 11:01:22
|
Hi Erik
I don't think it will hide the image though as there are two tags in the line.
I will give it a try though.
Regards,
Mark Fireworks For Sale |
|
|
|
Topic |
|