Cookie functions and shopping cart

Source: Internet
Author: User
Cookie functions and shopping cart
Zif posted on 16:13:00
Hanging out on the internet and finding a good idea!
It can be used in small online stores.
I will list the source code below and make good use of it!
Let me know what it is!
------------------------------------
Products.html
<Html>
<Head>
<Title> Claremont Toyworld </title>
<Script LANGUAGE = "JAVASCRIPT">
Function SetCookie (name, price, form ){
Document. cookie = document. cookie + ":" + name + ":";
Document. cookie = document. cookie + "" + ":";
Document. cookie = document. cookie + price + ":";
Document. cookie = document. cookie + "" + ":";
Document. cookie = document. cookie + "|" + ";";
}
</Script>
</Head>
<Body text = "#000000" bgcolor = "# FFFF00" link = "# effecee" vlink = "# 551A8B" alink = "# FF0000">
<A href = "trolley.html"> here. </a>
<Table BORDER = "0" CELLSPACING = "0" CELLPADDING = "0" COLS = "3" width = "75%">
<Tr>
<Td> <strong> Furby </strong> </td>
<Td> The Amazing Pet </td>
<Td> <small> AUD </small >$ 69.95 <font size = "-2"> + <a href = "# Postage"> postage </a> </font> </td>
<Td> <form>
<P> <input TYPE = "BUTTON" VALUE = "Add to cart" NAME = "Additem1"
Onclick = "SetCookie ('furby', '69. 95', this. form);"> </p>
</Form>
</Td>
</Tr>
</Table>
</Body>
</Html>
----------------------------------------
Trolley.html
<Html>
<Script LANGUAGE = "JAVASCRIPT" src = "trolley. js">

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.