Community Forums 

Main Content

countdown script

    Dec 11 2014 00:41:07

    #1

    cassie75

    Join date : 2008-09-18      Posts : 273

    I have a countdown script to last posting date on my site on my main page. But many customers come to my site from google and don't see my home page.
    I would love to be able to put it in the header of the basket but am lost on how to do it.

    The script is on an include page on my main site so that I can use the same script on several pages easily.

    The include page is at http://www.craftbits.co.uk/count.htm

    Any ideas?

    Life is too short to work 8 hours a day - thats why I work 16 :-)




    Dec 11 2014 10:58:08

    #2

    GT

    Join date : 2008-09-18      Posts : 3207

    I would pay for the premium cart and use your own template.

    Having trouble with a form or need one building?
    Fast turnaround, but I do charge :)

    Mal's Forms / Scripts and the syntax are here.




    Dec 11 2014 11:21:55

    #3

    cassie75

    Join date : 2008-09-18      Posts : 273

    I have always had premium.
    I have no idea how to do the template for the shopping basket page.
    I have used a template for the customer email receipt I think.
    Can you point me in the right direction please

    Life is too short to work 8 hours a day - thats why I work 16 :-)




    Dec 11 2014 14:16:18

    #4

    GT

    Join date : 2008-09-18      Posts : 3207

    Copy the html of the page you want to use as the template.

    Hard link to any external anchor / style sheet / image / script.

    Paste into the 'Standard Page Template' box, click 'update Record' button.

    An example is: http://www.plant-supports.co.uk

    Add something to the cart, then click the second link on the left, View your shopping cart, then view the source of the page.

    Having trouble with a form or need one building?
    Fast turnaround, but I do charge :)

    Mal's Forms / Scripts and the syntax are here.




    Dec 11 2014 16:22:21

    #5

    Debbie Q

    Join date : 2008-09-18      Posts : 4994

    Couldn't you just use a Java script call?

    Debbie Q

    Mal's Support: www.mals-e.com/support.php
    GT's Forms and examples: www.malsforms.com
    Helpful java scripts: www.gemasana.com/mals
    Shipping help documents: www.stoner.org.uk/mals

    My Create-A-Book Publishing - mycreateabook.com
    Personalized Books, Music CDs and Gifts for all ages and occasions.

    Please help me out and share my site on your networks.




    Dec 11 2014 18:35:42

    #6

    cassie75

    Join date : 2008-09-18      Posts : 273

    That sounds easier Debbie Q - if I knew what it was :-)

    Self taught and getting old - difficult to learn new stuff :-(

    Any more help would be appreciated.

    GT - I will see if I can do as you said - might need a bit more of a walk through as not sure what some of what you said means.

    Would it work with frames? Yes I know you hate frames but my two sites have over 20,000 pages and I don't have time to do that big a change when the site works AND is pretty high in Google :-)

    Life is too short to work 8 hours a day - thats why I work 16 :-)




    Dec 11 2014 19:26:45

    #7

    GT

    Join date : 2008-09-18      Posts : 3207

    A hard link is...

    http://www.your-site.com/images/name.jpg or http://www.your-site.com/name-of-script.js etc rather than....
    /name-of-script.js etc

    Having trouble with a form or need one building?
    Fast turnaround, but I do charge :)

    Mal's Forms / Scripts and the syntax are here.




    Dec 11 2014 21:50:59

    #8

    Geoff

    Join date : 2008-09-18      Posts : 415

    The following will show the output of the script in the cart. (TESTED}

    In your file "header-misc.js" after what you already have, paste only the script from your file "count.htm". That is, everything between <script type="text/javascript"> and </script>

    Then paste the line

    document.write ('<div id="countbox1" style="background-color:white;"></div>');

    Adjust the style specifications to your requirements



    Dec 12 2014 13:35:37

    #9

    cassie75

    Join date : 2008-09-18      Posts : 273

    Thanks Geoff - will give that a go :-)

    Does it matter if the script goes on more than one line - the header-misc.js seems to break if on more than one line.
    Wish I knew more about scripts - it is one of those things I keep meaning to do when I have time, but never remember when I am twiddling my thumbs.

    Life is too short to work 8 hours a day - thats why I work 16 :-)




    Dec 12 2014 14:46:14

    #10

    Geoff

    Join date : 2008-09-18      Posts : 415

    No need to alter anything, just copy and paste as it is written.



       1   |   2      »