Community Forums 

Main Content

Change color of my continue shopping box

    Feb 03 2016 22:43:45

    #1

    bas

    Join date :      Posts : 0

    Hi there,

    i want to change the color of the tekst under the number and price, it's automatically blue and purple....

    this is my script:

    <font color="white"><div style="position: fixed; top: 5px; right: 5px; width: 150px; margin: 20px; font-family: tahoma, arial, helvetica, sans-serif; font-size: 10pt; border: 1px solid #919191; border-radius: 6px; box-shadow: 0px 2px 0px #919191;">
    <script type="text/javascript">
    //<![CDATA[
    // nothing to touch here
    function SetCookie(cookieName,cookieValue,mins){
    var today = new Date();
    var expire = new Date();
    expire.setTime(today.getTime() + 60000*mins);
    document.cookie = cookieName+"="+escape(cookieValue) + ";expires="+expire.toGMTString();
    }
    function ReadCookie(cookieName){
    var theCookie=""+document.cookie;
    var ind=theCookie.indexOf(cookieName);
    if (ind==-1 || cookieName=="") return "";
    var ind1=theCookie.indexOf(';',ind);
    if (ind1==-1) ind1=theCookie.length;
    return unescape(theCookie.substring(ind+cookieName.length+1,ind1));
    }
    var loc = document.location;
    var cookieResult = ReadCookie("gt_mals_total");
    if (loc.search){
    var search = loc.search.slice(1);
    if (search.indexOf("qty") >= 0){
    SetCookie('gt_mals_total',search,30); //30 mins
    }
    }

    function deleteCookie(cookieName) {
    if (document.cookie != document.cookie) {
    index = document.cookie.indexOf(cookieName);
    } else {
    index = -1;
    }
    if (index == -1) {
    document.cookie=cookieName+"=GONEcbEndCookie; expires=Monday, 19-Aug-1996 05:00:00 GMT";
    }
    //document.location.href = document.location.href;
    //to reload without queryString parameters, use the line below instead
    document.location = document.location.href.substring(0,document.location.href.indexOf("?"));
    }

    // end of nothing to touch here

    // adjust the width below to suit your needs
    document.write("<table class=\"total\"\>");
    // end of adjust the width below to suit your needs

    // nothing to touch here
    var cookieResult = ReadCookie("gt_mals_total");
    if (cookieResult == ""){
    document.write("<tr><td colspan=\"2\" style=\"align:center\">Lege winkelwagen</td></tr>");
    } else {
    var valsArray = cookieResult.split("&");
    for (i in valsArray){
    var thisValPair = valsArray;
    var thisValArray = thisValPair.split("=");
    var thisName = thisValArray[0];
    var thisVal = thisValArray[1];
    // end of nothing to touch here

    if (thisName == "qty"){
    document.write("<tr><td>Items:</td><td style=\"align:right\">" + Math.floor(thisVal) + "</td></tr>");
    }
    if (thisName == "tot"){
    document.write("<tr><td>Total:</td><td style=\"align:right\">" + "" + thisVal + "</td></tr>");
    // change the above "" symbol to your currency symbol, example "$".
    }
    }
    document.write("<tr><td colspan=\"2\"><a href=\"http://ww12.aitsafe.com/cf/review.cfm?userid=E898779&return=http://nieuw.gestoys.nl/index.html\"_target_ >winkelwagen/afrekenen</a></td></tr>");
    // change the return url to your page url above
    }
    document.write("</table>");
    //]]>

    // Remove any table that you see positioned here, it is created by the script, for example:
    //
    </script>
    </div>

    thanx



    Feb 03 2016 22:51:18

    #2

    bas

    Join date :      Posts : 0

    can you help?



    Feb 09 2016 16:12:59

    #3

    dr john

    Join date : 2016-02-09      Posts : 2

    bas said can you help?
    You would do this within the CSS of your site.
    Give the text a class name and then set you colours for that class.