Jag har ett problem som jag skulle vilja ha hjälp med. Jag håller på att bygga en butik och får inte javan att fungera riktigt. Varukorgen fungerar utmärkt ända tills att jag lägger in min "dropp" meny. Då menyn är på plats så vill inte varukorgen fungera. om det är någon som känner på sig att han/hon grejar detta så kan jag maila koden så får ni titta. Eller kanske bara ett tips på vägen???
Tacksam för allt, jag skall bara få det att fungera.
Här kommer koden: (Klistar in allt, mycket onödigt också)
Index:
<html>
<head>
<title>eXperience DHTML coolFrameMenus</title>
</head>
<!--*******************************************************************************
Copyright (c) 1999 Thomas Brattli (www.bratta.com)
eXperience DHTML coolFrameMenus - Get it at www.bratta.com
Version Beta 1.0
This script can be used freely as long as all copyright messages are
intact.
For simplicity you should use these names on the frames
Leave the empty page as the default page in the MAIN frame.
Then place the first page in the frame as the startpage of the menu.
*******************************************************************************-->
<frameset framespacing="0" frameborder="0" border="0" rows="111,*">
<frame src="menu_ex1.html" name="frmMenu" id="frmMenu" frameborder="No" scrolling="No"
noresize marginwidth="0" marginheight="0" target="frmMain">
<frame name="frmMain" id="frmMain" src="empty.html" marginwidth="0" marginheight="0"
scrolling="auto" frameborder="0" target="main">
<noframes>
<body>
</body>
</noframes>
</frameset>
</html>
Menu:
<html>
<head>
<title>Menu page</title>
<script language="JavaScript1.2" type="text/javascript">
/*******************************************************************************
Copyright (c) 1999 Thomas Brattli (www.bratta.com)
eXperience DHTML coolFrameMenus - Get it at www.bratta.com
Version Beta 1.0
This script can be used freely as long as all copyright messages are
intact.
Visit www.bratta.com/dhtml/scripts.asp for the latest version of the script.
*******************************************************************************/
/*****************************************************************************
Default browsercheck
******************************************************************************/
function checkBrowser(){
this.ver=navigator.appVersion
this.dom=document.getElementById?1:0
this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom)?1:0;
this.ie4=(document.all && !this.dom)?1:0;
this.ns5=(this.dom && parseInt(this.ver) >= 5) ?1:0;
this.ns4=(document.layers && !this.dom)?1:0;
this.opera=!(this.ie5 || this.ie4 || this.ns4 || this.ns5) && this.dom
this.bw=(this.ie5 || this.ie4 || this.ns4 || this.ns5)
return this
}
var bw=new checkBrowser()
</script>
<base target="frmMain">
<script language="JavaScript1.2" src="coolframe.js" type="text/javascript"></script>
</head>
<body bgcolor="silver">
<script LANGUAGE="JavaScript">
// alterError - fixes a rounding bug in Netscape 2
function alterError(value) {
if (value\<=0.99) {
newPounds = '0';
} else {
newPounds = parseInt(value);
}
newPence = parseInt((value+.0008 - newPounds)\* 100);
if (eval(newPence) \<= 9) newPence='0'+newPence;
newString = newPounds + '.' + newPence;
return (newString);
}
// buyItem - adds an item to the shooping basket
function buyItem(newItem, newPrice, newQuantity) {
if (newQuantity \<= 0) {
rc = alert('The quantity entered is incorrect');
} else {
if (confirm('Lägg till '+newQuantity+' x '+newItem+' till varukorgen')) {
index = document.cookie.indexOf("TheBasket");
countbegin = (document.cookie.indexOf("=", index) + 1);
countend = document.cookie.indexOf(";", index);
if (countend == -1) {
countend = document.cookie.length;
}
document.cookie="TheBasket="+document.cookie.substring(countbegin, countend)+"\["+newItem+"|"+newPrice+"|"+newQuantity+"\]";
}
}
}
// resetShoppingBasket - resets to shopping basket to empty
function resetShoppingBasket() {
index = document.cookie.indexOf("TheBasket");
document.cookie="TheBasket=.";
}
</script>
<script language="JavaScript1.2"
type="text/javascript">
/*******************************************************************************
Copyright (c) 1999 Thomas Brattli (www.bratta.com)
eXperience DHTML coolFrameMenus - Get it at www.bratta.com
Version Beta 1.0
This script can be used freely as long as all copyright messages are
intact.
Visit www.bratta.com/dhtml/scripts.asp for the latest version of the script.
*******************************************************************************/
/*****************************************************************************
Main variables
******************************************************************************/
mDebugging=1 //Set to 0 for NO Debugging, set to 1 for alert debugging and set to 2 for status.
oCFMenu=new coolFrameMenu('oCFMenu') //Making a new menu
oCFMenu.menuFrameName="frmMain" //The name of your "main" frame
oCFMenu.startPage="main.html" //The first page to appear in the main frame (it's important that this is loaded after the menu is created!)
oCFMenu.maxsubs=8 //The max number of subs you will have
oCFMenu.maxsubs2=7 //The max number of sub2s you will have
oCFMenu.maxsubs3=7 //The max number of sub2s you will have
//Frametype:
// 0 = menu in left frame
// 1 = menu in right frame
// 2 = menu in top frame
// 3 = menu in bottom frame
oCFMenu.frametype=2
//NOTE: If your using 1 or 3 and expect to have scrollbars remember to set the subXplacement and subYplacement to suit the scrollbars.
//I was going to add an automatic check of that, but then I would have had to add more code in the main pages (a onload function)
//And I didn't want to do that
oCFMenu.pagecheck=1 //This is a check that will keep the submenus from going to far out! Only for top and bottom frame
oCFMenu.mainheight=25 //The height of the main menuitems in pixel or %
oCFMenu.mainwidth=130 //The width of the main menuitems in pixel or %
oCFMenu.subwidth=oCFMenu.mainwidth // The width of the submenus
oCFMenu.subheight=25 //The height if the subitems in pixel or %
oCFMenu.sub2width=oCFMenu.mainwidth // The width of the sub2menus in pixel or %
oCFMenu.sub2height=oCFMenu.subheight // The height if the sub2items in pixel or %
oCFMenu.sub3width=oCFMenu.mainwidth // The width of the sub3menus in pixel or %
oCFMenu.sub3height=oCFMenu.subheight // The height if the sub3items in pixel or %
oCFMenu.subXplacement=0 // Relative to the main item
oCFMenu.subYplacement=0 // Relative to the main item
oCFMenu.sub2Xplacement=oCFMenu.subwidth-30 // The X placement of the subsubmenus, relative to the sub item
oCFMenu.sub2Yplacement=5 // The Y placement of the subsubmenus, relative to the sub item
oCFMenu.sub3Xplacement=oCFMenu.sub2width-30 // The X placement of the subsubmenus, relative to the sub2 item
oCFMenu.sub3Yplacement=5 // The Y placement of the subsubmenus, relative to the sub2 item
oCFMenu.mainbgcoloroff='#488586' //The backgroundcolor of the main menuitems
oCFMenu.mainbgcoloron='#C6DCDC' //The backgroundcolor on mouseover of the main menuitems
oCFMenu.maintextcolor="white" //The original text color
oCFMenu.mainhovercolor="#6C5050" //The color the text should change to when mouseovered. NOTE: Doesn't work in NS4
oCFMenu.subbgcoloroff='#006699' //The backgroundcolor of the sub menuitems
oCFMenu.subbgcoloron='#9966cc' //The backgroundcolor on mouseover of the sub menuitems
oCFMenu.subtextcolor="white" //The original text color
oCFMenu.subhovercolor="silver" //The color the text should change to when mouseovered. NOTE: Doesn't work in NS4
oCFMenu.sub2bgcoloroff='#003399' //The backgroundcolor of the subsub menuitems
oCFMenu.sub2bgcoloron='#996666' //The backgroundcolor on mouseover of the subsub menuitems
oCFMenu.sub2textcolor="white" //The original text color
oCFMenu.sub2hovercolor="green" //The color the text should change to when mouseovered. NOTE: Doesn't work in NS4
oCFMenu.sub3bgcoloroff='#006699' //The backgroundcolor of the subsub menuitems
oCFMenu.sub3bgcoloron='#009999' //The backgroundcolor on mouseover of the subsub menuitems
oCFMenu.sub3textcolor="white" //The original text color
oCFMenu.sub3hovercolor="red" //The color the text should change to when mouseovered. NOTE: Doesn't work in NS4
//Borders
oCFMenu.bordersize=2
oCFMenu.bordercolor="#447778"
//NOTE: The border immplemtation isn't prefect. The width and placement of elements have nothing
//to say here, so play with the fromtop, fromleft, subXplacement et cetera to get the desired effect.
//Styles for the top menus! - Change the colors, padding and other styles in here!
oCFMenu.topstyle="font-family:verdana,arial,helvetica; font-size:13px;font-weight:bold; padding:4;"
//Styles for the submenus - Change the colors, padding and other styles in here!
oCFMenu.substyle="padding:3px; font-family:arial,helvetica; font-size:12px"
//Styles for the sub2menus - Change the colors, padding and other styles in here!
oCFMenu.sub2style="padding:3px; font-family:arial,helvetica; font-size:12px"
//Styles for the sub3menus - Change the colors, padding and other styles in here!
oCFMenu.sub3style="padding:3px; font-family:arial,helvetica; font-size:11px"
//LEAVE THESE LINES
oCFMenu.makeStyle() //Writes out the style for the top menus
oCFMenu.makeFrameString() //Makes the string for the main frame
//Placement of the menuitems
//Example in %:
//oCFMenu.menuplacement=new Array("0%","30%","45%","60%","75%","90%") //Remember to make the arrays contain as many values as you have main menuitems
//Example in px: (remember to use the ' ' around the numbers)
//oCFMenu.menuplacement=new Array(10,200,300,400,500,600,700)
//Example right beside eachother (only adding the pxbetween variable)
oCFMenu.menuplacement=0
//If you use the "right beside eachother" you cant how many pixel there should be between each here
oCFMenu.pxbetween=0 //in pixel or %
//And you can set where it should start from the left here
oCFMenu.fromleft=2 //in pixel or %
//This is how much from the top the menu should be.
oCFMenu.fromtop=85 //in pixel or %
//Making a top element makeTop(TEXT,LINK,TARGET,WIDTH,FUNCTION)
//TEXT = the text that you want displayed inside the item
//LINK = The page you want the item to link to - Set to 0 or don't spesify if you don't want a link
//TARGET = The target for the link, set to _blank, frame_name, _top - Set to 0 or don't spesify if you don't want a target
//WIDTH = Here you can set an individual width for each top element. This is ONLY availble on the top elements
//FUNCTION = If you want some Javascript code to be executed when this item is clicked place it here
oCFMenu.makeTop('Om Dogkeepers',0,0,125) //MAIN 1
//Making a sub element makeSub(TEXT,LINK,TARGET,FUNCTION)
//TEXT = the text that you want displayed inside the item
//LINK = The page you want the item to link to - Set to 0 or don't spesify if you don't want a link
//TARGET = The target for the link, set to _blank, frame_name, _top - Set to 0 or don't specify if you don't want a target
//FUNCTION = If you want some Javascript code to be executed when this item is clicked place it here
oCFMenu.makeSub('test1')
//Making a sub2 element makeSub2(TEXT,LINK,TARGET,FUNCTION)
//TEXT = the text that you want displayed inside the item
//LINK = The page you want the item to link to - Set to 0 or don't spesify if you don't want a link
//TARGET = The target for the link, set to _blank, frame_name, _top - Set to 0 or don't specify if you don't want a target
//FUNCTION = If you want some Javascript code to be executed when this item is clicked place it here
oCFMenu.makeSub2('testsub1')
//Making a sub3 element makeSub3(TEXT,LINK,TARGET,FUNCTION)
//TEXT = the text that you want displayed inside the item
//LINK = The page you want the item to link to - Set to 0 or don't spesify if you don't want a link
//TARGET = The target for the link, set to _blank, frame_name, _top - Set to 0 or don't specify if you don't want a target
//FUNCTION = If you want some Javascript code to be executed when this item is clicked place it here
oCFMenu.makeSub3('testsub3-1','main1.html','frmMain')
oCFMenu.makeSub3('testsub3-2','main.html','frmMain')
oCFMenu.makeSub2('testsub2')
oCFMenu.makeSub3('testsub3-1')
oCFMenu.makeSub3('testsub3-2')
oCFMenu.makeSub('test2')
oCFMenu.makeSub2('testsub1')
oCFMenu.makeSub3('testsub3-1')
oCFMenu.makeSub3('testsub3-2')
oCFMenu.makeSub2('testsub2')
oCFMenu.makeSub2('testsub1')
oCFMenu.makeSub2('testsub2')
oCFMenu.makeSub3('testsub3-1')
oCFMenu.makeSub3('testsub3-2')
oCFMenu.makeSub2('testsub1')
oCFMenu.makeSub2('testsub2','main1.html','frmMain')
oCFMenu.makeSub('test3','main1.html','frmMain')
oCFMenu.makeSub('test3','main.html','frmMain')
oCFMenu.makeSub('test3','main1.html','frmMain')
oCFMenu.makeSub('test3','main.html','frmMain')
oCFMenu.makeTop('Häst',0,0,45) //Main 2
oCFMenu.makeSub('test1')
oCFMenu.makeSub2('testsub1')
oCFMenu.makeSub3('testsub3-1')
oCFMenu.makeSub3('testsub3-2')
oCFMenu.makeSub2('testsub2')
oCFMenu.makeSub3('testsub3-1')
oCFMenu.makeSub3('testsub3-2')
oCFMenu.makeSub3('testsub3-3')
oCFMenu.makeSub3('testsub3-4')
oCFMenu.makeSub3('testsub3-5')
oCFMenu.makeSub3('testsub3-6','main1.html','frmMain')
oCFMenu.makeSub('DHTML',0,0,80)
oCFMenu.makeSub2('testsub1')
oCFMenu.makeSub3('testsub3-1')
oCFMenu.makeSub3('testsub3-2')
oCFMenu.makeSub2('testsub2')
oCFMenu.makeSub3('testsub3-1')
oCFMenu.makeSub3('testsub3-2')
oCFMenu.makeSub('test3',0,0,'alert("test")')
oCFMenu.makeTop('Hund',0,0,50) //Main 3
oCFMenu.makeSub('Tugg/Godis','item2.html','frmMain')
oCFMenu.makeSub2('testsub1')
oCFMenu.makeSub2('testsub2')
oCFMenu.makeSub('Koppel/Halsband')
oCFMenu.makeSub('Preparat')
oCFMenu.makeSub('Pälsvård')
oCFMenu.makeSub('Leksaker')
oCFMenu.makeSub('Bur/Bäddar')
oCFMenu.makeSub('Bruks/Jakt')
oCFMenu.makeSub('Övrigt')
oCFMenu.makeTop('Katt',0,0,45) //Main 4
oCFMenu.makeTop('Smådjur',0,0,70) //Main 5
oCFMenu.makeSub('test1')
oCFMenu.makeSub2('testsub1')
oCFMenu.makeSub2('testsub2')
oCFMenu.makeSub('test2')
oCFMenu.makeSub2('testsub1')
oCFMenu.makeSub3('testsub3-1')
oCFMenu.makeSub3('testsub3-2')
oCFMenu.makeSub2('testsub2')
oCFMenu.makeSub3('testsub3-1')
oCFMenu.makeSub3('testsub3-2')
oCFMenu.makeTop('Kläder',0,0,60) //Main 6
oCFMenu.makeTop('Kängor',0,0,65) //Main 7
oCFMenu.makeTop('Muurika',0,0,70) //Main 8
oCFMenu.makeTop('Köpinformation',0,0,125) //Main 9
oCFMenu.makeTop('Varukorg','basket.html','frmMain',80) //Main 10
oCFMenu.makeTop('Kassan',0,0,60) //Main 11
//Leave these lines!
oCFMenu.construct()
//Setting the bottom page. This have to be done so that we are sure that the menus are built
//before we load the bottom page. If the page was resized we want to load the same page back into the frameset
searchtext=location.search
isresized=searchtext.lastIndexOf("resizedurl")
if(isresized>-1){ //Get PAGE
oCFMenu.startPage="http://" + searchtext.substr(isresized+11,searchtext.length)
}
if(top[oCFMenu.menuFrameName])top[oCFMenu.menuFrameName].location.href=oCFMenu.startPage
</script>
</body>
</html>
Varukorg:
<html>
<head>
<title>DogKeeperS</title>
<style type="text/css">
\<!--
a:hover {text-decoration:none;color:#113699;}
a:link {text-decoration:none;color:#000000;}
!--\>
</style>
</head>
<body bgcolor="#FFFFFF" link="#000000" alink="#000000" vlink="#000000">
<!-- The line below is the line that have to be added to ALL pages that goes in the main frame -->
<script language="JavaScript1.2" src="cframe.js" type="text/javascript"></script>
<p><br>
</p>
<form name="itemsform">
<script LANGUAGE="JavaScript">
// showItems() - displays shopping basket in a table
function showItems() {
index = document.cookie.indexOf("TheBasket");
countbegin = (document.cookie.indexOf("=", index) + 1);
countend = document.cookie.indexOf(";", index);
if (countend == -1) {
countend = document.cookie.length;
}
fulllist = document.cookie.substring(countbegin, countend);
totprice = 0;
document.writeln('\<FORM NAME="updateform"\>');
document.writeln('\<TABLE bgcolor="909090" CELLSPACING="5" BORDER="4"\>');
document.writeln('<TR><TD bgcolor="909090"><font color="white"><font face="verdana" size="-1"><b>Vara: </b></TD><TD bgcolor="909090"><font color="white"><font face="verdana" size="-1"><b>Antal: </b></TD><TD bgcolor="909090"><font color="white"><font face="verdana" size="-1"><b>Pris: </b></TD><td bgcolor="909090"><font color="white"><font face="verdana" size="-1"><b>Totalt: </font></b><TD bgcolor="909090"><font color="white"><b><font face="verdana" size="-1">Ta Bort/Uppdatera: </font></b></TD></TR>');
itemlist = 0;
for (var i = 0; i \<= fulllist.length; i++) {
if (fulllist.substring(i,i+1) == '\[') {
itemstart = i+1;
thisitem = 1;
} else if (fulllist.substring(i,i+1) == '\]') {
itemend = i;
thequantity = fulllist.substring(itemstart, itemend);
itemtotal = 0;
itemtotal = (eval(theprice\*thequantity));
temptotal = itemtotal \* 100;
totprice = totprice + itemtotal;
itemlist=itemlist+1;
document.write('\<tr\>\<td\>'+theitem+'\</td\>');
document.write('\<td align=right\>\<INPUT TYPE=TEXT NAME="quant'+itemlist+'" VALUE="'+thequantity+'" SIZE=3\>\</td\>\<td align=right\>'+theprice+'\</td\>\<td align=right\>'+top.menu.alterError(itemtotal)+'\</td\>\<td\>\<a href="javascript:removeItem('+itemlist+')"\>Tabort\</a\> \<a href="javascript:amendItem('+itemlist+',document.updateform.quant'+itemlist+'.value)"\>Uppdatera\</a\>\</td\>\</tr\>');
} else if (fulllist.substring(i,i+1) == '|') {
if (thisitem==1) theitem = fulllist.substring(itemstart, i);
if (thisitem==2) theprice = fulllist.substring(itemstart, i);
thisitem++;
itemstart=i+1;
}
}
document.writeln('\<tr\>\<td colspan=3\>\<font face="verdana" size="-1"\>\<b\>Pris exkl. postens avgifter:\</b\>\</td\>\<td align=right\>'+top.menu.alterError(totprice)+'\</td\>\<td\>\</td\>\</tr\>');
document.writeln('\</TABLE\>');
document.writeln('\</FORM\>');
}
function amendItem(itemno, newquant) {
newItemList = null;
itemlist = 0;
for (var i = 0; i \<= fulllist.length; i++) {
if (fulllist.substring(i,i+1) == '\[') {
thisitem = 1;
itemstart = i+1;
fullstart = i+1;
} else if (fulllist.substring(i,i+1) == '\]') {
itemend = i;
itemlist=itemlist+1;
if (itemlist != itemno) {
newItemList = newItemList+'\['+fulllist.substring(fullstart, itemend)+'\]';
} else {
newItemList = newItemList + '\['+theitem+'|'+theprice+'|'+newquant+'\]';
}
} else if (fulllist.substring(i,i+1) == '|') {
if (thisitem==1) theitem = fulllist.substring(itemstart, i);
if (thisitem==2) theprice = fulllist.substring(itemstart, i);
thisitem++;
itemstart=i+1;
}
}
index = document.cookie.indexOf("TheBasket");
document.cookie="TheBasket="+newItemList;
self.location = "basket.html";
}
function removeItem(itemno) {
newItemList = null;
itemlist = 0;
for (var i = 0; i \<= fulllist.length; i++) {
if (fulllist.substring(i,i+1) == '\[') {
itemstart = i+1;
} else if (fulllist.substring(i,i+1) == '\]') {
itemend = i;
theitem = fulllist.substring(itemstart, itemend);
itemlist=itemlist+1;
if (itemlist != itemno) {
newItemList = newItemList+'\['+fulllist.substring(itemstart, itemend)+'\]';
}
}
}
index = document.cookie.indexOf("TheBasket");
document.cookie="TheBasket="+newItemList;
self.location = "basket.html";
}
// clearBasket() - removes all items from the basket
function clearBasket() {
if (confirm('Är det säkert att du vill ta bort alla varor ur korgen?')) {
index = document.cookie.indexOf("TheBasket");
document.cookie="TheBasket=.";
self.location = "basket.html";
}
}
</script>
</form>
<div align="center"><center>
<table width="90%">
<tr>
<td valign="top"><font face="verdana" size="-1"><b>Din varukorg:</b><br>
Här kan du se vad du hittils har handlat, samt lägga till och ta bort varor.<br>
Om du är färdig med dina inköp gå till "kassan" genom att klicka <a
href="buy.html">här</a> eller i menyn till vänster. <br>
<br>
<br>
</font></td>
</tr>
</table>
</center></div><script LANGUAGE="JavaScript">
showItems();
</script>
<form>
<p><input type="button" name="clear" value="Töm Varukorgen" onClick="clearBasket()"> </p>
</form>
</body>
</html>
Varor:
<html>
<head>
<title>DogKeeperS</title>
<style type="text/css">
\<!--
a:hover {text-decoration:none;color:#000000;}
!--\>
</style>
</head>
<body bgcolor="#FFFFFF" link="#000000" alink="#000000" vlink="#000000" topmargin="2"
background="images/Bakgrund.jpg">
<!-- The line below is the line that have to be added to ALL pages that goes in the main frame -->
<script language="JavaScript1.2" src="cframe.js" type="text/javascript"></script>
<script
LANGUAGE="JavaScript">
// alterError - fixes a rounding bug in Netscape 2
function alterError(value) {
if (value\<=0.99) {
newPounds = '0';
} else {
newPounds = parseInt(value);
}
newPence = parseInt((value+.0008 - newPounds)\* 100);
if (eval(newPence) \<= 9) newPence='0'+newPence;
newString = newPounds + '.' + newPence;
return (newString);
}
// buyItem - adds an item to the shooping basket
function buyItem(newItem, newPrice, newQuantity) {
if (newQuantity \<= 0) {
rc = alert('The quantity entered is incorrect');
} else {
if (confirm('Lägg till '+newQuantity+' x '+newItem+' till varukorgen')) {
index = document.cookie.indexOf("TheBasket");
countbegin = (document.cookie.indexOf("=", index) + 1);
countend = document.cookie.indexOf(";", index);
if (countend == -1) {
countend = document.cookie.length;
}
document.cookie="TheBasket="+document.cookie.substring(countbegin, countend)+"\["+newItem+"|"+newPrice+"|"+newQuantity+"\]";
}
}
}
// resetShoppingBasket - resets to shopping basket to empty
function resetShoppingBasket() {
index = document.cookie.indexOf("TheBasket");
document.cookie="TheBasket=.";
}
</script>
<big><big><font face="Arial" color="#008080"><strong><u><a
name="Tugg/Godis"><big><big>
<p align="center">Tugg/Godis</big></big></a></u></strong></font></big></big></p>
<form name="itemsform">
<div align="center"><center><table width="635" height="334" cellspacing="20"
cellpadding="10">
<tr>
<td valigin="top" height="79" width="131"><img src="images/Mvc-171s.jpg"
alt="Mvc-171s.jpg (3841 bytes)" WIDTH="100" HEIGHT="98"></td>
<td valigin="top" height="79" style="margin: 0" width="228"><font face="Arial"><strong>Tuggpinnar
100pack Ø 6-8mm</strong><br>
Pris: SEK 65/pkt<br>
Antal:</font><br>
<input type="value" name="mpquant" value="1" size="3"> <input type="button" name="mpadd"
value="Lägg i varukorg"
onclick="top.menu.buyItem
('Tuggpinnar 100pack 6-8mm','65', document.itemsform.mpquant.value)"><br>
<font face="Arial"><strong>Tuggpinnar 100pack<br>
Ø 9-10mm</strong><br>
Pris: SEK 99/pkt<br>
Antal:</font><br>
<input type="value" name="mpquant1" value="1" size="3"> <input type="button" name="mpadd1"
value="Lägg i varukorg"
onclick="top.menu.buyItem
('Tuggpinnar 100pack 9-10mm','99', document.itemsform.mpquant1.value)"></td>
</tr>
<tr>
<td valigin="top" height="25" width="131"><img src="images/MVC-172S.JPG"
alt="MVC-172S.JPG (1878 bytes)" WIDTH="100" HEIGHT="75"></td>
<td valigin="top" height="25" width="228"><font face="Arial"><strong>Mini-markets</strong><br>
Pris: SEK 3,50/hg<br>
Antal:</font><br>
<input type="value" name="mpquant2" value="1" size="3"> <input type="button" name="mpadd2"
value="Lägg i varukorg"
onclick="top.menu.buyItem
('Mini-markets','3.50', document.itemsform.mpquant2.value)"></td>
</tr>
</table>
</center></div>
</form>
</body>
</html>