Welcome, Guest ( Customer Panel | Login )




 All Forums
 VPCart Forum
 Add-ons for VP-ASP
 rollover for xbuttonimage - How?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

avus3
Starting Member

3 Posts

Posted - June 16 2009 :  11:07:41  Show Profile  Reply with Quote
Hi,

I wanted to make xbuttonimage a rollover button and not just a static image button. any help on this?

Edited by - avus3 on June 17 2009 13:42:08

madbug
VP-CART New User

130 Posts

Posted - July 02 2009 :  20:51:43  Show Profile  Reply with Quote
Hi,

You might need to try to use the CSS to control the input button layout. Please try below:

1) add in the New css class to your css file (shop.css)
Your button image files should upload into the "images" folder, you can change the width and height according to your button images.

#navButton {
background-image:url(../images/vpnav_order01.gif);
width:120px;
height:20px;
border:0;
}

#navButton:hover {
background-image:url(../images/vpnav_order02.gif);
width:120px;
height:20px;
border:0;
}

2) Save the shop.css, open both file shopfileio.asp and shopproductformat.asp

3) Locate the code in shopfileio.asp:

response.write "<input class=""submitbtn"" type=""submit"" value=""" & mytext & """ name=""Order"" />"

comment out the above code and add in new code:

'response.write "<input class=""submitbtn"" type=""submit"" value=""" & mytext & """ name=""Order"" />"
response.write "<input type=""submit"" name=""button"" id=""navButton"" value="""" />"

4) Save shopfileio.asp, locate the code in shopproductformat.asp

WriteForm "<input class=""submitbtn"" type=""submit"" value=""" & mytext & """ name=""Order"">"

comment it out and add in new code:

'WriteForm "<input class=""submitbtn"" type=""submit"" value=""" & mytext & """ name=""Order"">"
WriteForm "<input type=""submit"" name=""button"" id=""navButton"" value="""" />"

5) Save shopproductformat.asp.

6) Login to your admin, go to setup, search for xbuttonimages, remove any value in xbuttonimages

Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
Snitz Forums 2000
0 Item(s)
$0.00