SourceTec Software

It is currently Thu Apr 24, 2014 7:28 pm

All times are UTC + 8 hours

Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Wed Apr 02, 2008 3:16 pm 

Joined: Fri Mar 28, 2008 4:40 pm
Posts: 8
Dear Sir/Madam,

How can i add in Text Box and Add to cart button into the web scroller. Something like Amazon style but i want it to be display at the page itself. My code as below if using pure asp:-

eg(scrolling information as below):


sts_ai("i0",[0,"<%=sName%>","<%=sLink%>","_self","<%=sImage%>",80,158,"center"],["transparent","7pt Verdana,Arial","#000000","none","7pt Verdana,Arial","#000000","none"]);

[Qty Text Box]
[Add To Cart Button]

   pID = trim(openRS("ProductID"))
   PV = trim(formatnumber(openRS("PointValue"),2))
   if txtImage="" then txtImage="/ge/cms/images/noproduct.gif"
                  response.write "<td class=""tdbottom""><img src="&txtImage&" border=""0""></td>"
                  response.write "<td class=""tdbottom"" valign=""top""><table valign=""top""><tr><td><b><font color=""green"">"&Productcode&"</font></b></td></tr><tr><td><font color=""gray"">"&ProductDesc&"</font></td></tr><tr><td>"&openrs("details")&"</td></tr><tr><td><font color=""red"">"& usualP &" : "& curCode &" <strike>"& formatnumber(DP,2) &" </strike></font></td></tr><tr><td>"& MemberP &" : "& curCode &" "& formatnumber(RP,2) &"</td></tr>"
                  <tr><td><input class="textbox" type="text" name="txtProdQty<%=pID%>" id="txtProdQty<%=pID%>" value="1" size="2" maxlength="3" onChange="checkInt('txtProdQty<%=pID%>');"> <img src="/ge/cms/images/carts.jpg" name="Buy" onClick="javascript:insertToCart('<%=Session("MemberCode")%>','<%=Productcode%>','<%=Session("cmsCountry")%>','add','<%=piD%>','<%=ProdPriceType%>')" border="0" alt="Add to Cart"></td></tr>

Thank you.
Appreciate for yours kindly reply.


 Post subject:
PostPosted: Wed Apr 02, 2008 3:55 pm 
Support Team
Support Team
User avatar

Joined: Thu Aug 01, 2002 5:59 pm
Posts: 1808
Try this:

s=s+"<br><input type=text id='xtProdQty"+rs("productid")+"><img src='' onclick='insertToCart(...)'>"
sts_ai("i0",[0,"<%=s%>","<%=sLink%>","_self","<%=sImage%>",80,158,"center"],["transparent","7pt Verdana,Arial","#000000","none","7pt Verdana,Arial","#000000","none"]);

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 8 hours

Who is online

Users browsing this forum: No registered users and 1 guest

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group