Search the archives!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Javascript] Adding Picture
- From: javascript@xxxxxxxxxx (arb)
- Subject: [Javascript] Adding Picture
- Date: Mon, 24 Sep 2001 20:58:41 +0100
This is a multi-part message in MIME format. ------=_NextPart_000_00E1_01C1453B.B0DAC980 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable My java writing ability amounts to nothing. This script was modified for = me by SnarfLT who recommended this list for further modifications. I = wish to have a variable sized jpeg or gif displayed, next to the = descriptive text, which would be different depending on the site = selected. This, as an explanation, will be the company logo. The full = page can be seen at http://www.andys-scribblings.co.uk/linkstest.html <SCRIPT> <!-- /* */ /* written by "Snarf" (snarflt@xxxxxxx) */ /* */ // Start Links var link0 =3D new Array() link0[0]=3D"-- Select --"; link0[1]=3D"Address will be shown here, click the 'Go' button"; link0[2]=3D"Choose a website from the list on the left, and detailes of = the retailer and the wines it sells will be displayed here.\n\nScript = written by 'Snarf' (snarflt@xxxxxxx)"; var link1 =3D new Array() link1[0]=3D"ChateuOnline"; link1[1]=3D"http://affiliation.chateauonline.com/uk/Tracking/clic.asp?par= tner=3DChateauOnline&p1=3DN%3Aa%E1&p2=3DN%3Aca&p3=3DN7=EDw/"; link1[2]=3D"A fine selection of wines from the world over. Nicely = designed site with plenty of `click` options. Loads of choice from = everyday `quaffers` through to choice connoisseur bottles. Lots of = pre-mixed cases, well-known producers mixed with choice exclusives. Food = matching and cellaring tips complete good tasting notes. The only thing = that annoyed me was that most of the wines must be brought in either = cases of 3 or 6. But some bottles can be purchased individually."; var link2 =3D new Array() link2[0]=3D"Allez Vins!"; link2[1]=3D"http://www.allezvins.co.uk/"; link2[2]=3D"Interesting and quality wines are the mainstay here. = Established in 1987 Allez Vins! specialises in small domaines from the = lesser known regions of France. Cahors and Madiran are particularly = strong with some lovely wines from Bergerac, Gascony and the Rhone and = Loire. The website is brimming with enthusiasm and exudes a passion for = the wines. Well worth checking out. No minimum purchase, delivery per = order =A36.50."; var link3 =3D new Array() link3[0]=3D"WineSmart"; link3[1]=3D"http://www.qksrv.net/click-908807-5341780/"; link3[2]=3D"I have had some great wines from this European based = company. They concentrate on New World wines that have little = distribution in the UK. But they ship throughout Europe. Quality wines = from California, New Zealand, Australia and everywhere else too. There = are a smattering of choice wines from Europe as well. The site is very = easy to use with plenty of information and choice. No minimum delivery. = The postal charge varies depending on country."; var link4 =3D new Array() link4[0]=3D"World Marachel"; link4[1]=3D"http://www.worldmarechal.com/marechal/uk/pub/lien_externe_uk.= cfm?choix=3Dboutique/boutique.cfm&affilie=3Dscribblings"; link4[2]=3D"A French based company so obviously concentrating on all = things French. There is an added `food` dimension to this site with = plenty of tasty treats and specialist foods through to complete dishes = to match with the wine offerings. Although strong on France there are a = smattering of wines from Australia, Spain, California and elsewhere."; var link5 =3D new Array() link5[0]=3D"number 5"; link5[1]=3D"Address will be shown here, click the 'Go' button"; link5[2]=3D"Choose a website from the list on the left, and detailes of = the retailer and the wines it sells will be displayed here.\n\nScript = written by 'Snarf' (snarflt@xxxxxxx)"; // define the variable numLinks[0] with the number of links you have = above. In this case the last defined link above is link4, so we have 4 = links. // make sure there is the same amount of <OPTION> tags as there are = links, each with the numerical value corresponding to the link that will = go there var numLinks=3Dnew Array() numLinks[0]=3D"5" // Create the Select List function firstLoad() { for (i=3D0;i<=3DnumLinks[0];i++) { document.links.elements[0].options[i].value=3Di document.links.elements[0].options[i].text=3Deval("link"+ i +"[0]") } document.notes.elements[0].value=3Dlink0[0] document.links.elements[1].value=3Dlink0[1] document.links.elements[4].value=3Dlink0[2] } function changeLink(num) { if (num <=3D numLinks[0]) { document.notes.elements[0].value=3Deval("link"+ num +"[0]") document.links.elements[1].value=3Deval("link"+ num +"[1]") document.links.elements[4].value=3Deval("link"+ num +"[2]") } } function goLink(linkAddress,selected) { if (selected > "0") { window.open("" + linkAddress + "", "Window", = ['width=3D150,height=3D200,toolbar=3D1,location=3D1,directories=3D1,statu= s=3D1,menubar=3D1,scrollbars=3D1,resizable=3D1']) } } function tastingNotes(selected) { if (selected > "0") { document.notes.submit() } } //--> </SCRIPT> <script type=3D"text/javascript" language=3D"JavaScript1.2"> var bookmarkurl=3D"http://www.andys-scribblings.co.uk" var bookmarktitle=3D"Andy's Scribblings- Weekly drinks newsletter" function addbookmark(){ if (document.all) window.external.AddFavorite(bookmarkurl,bookmarktitle) } </script> <FORM name=3D"links"> <TABLE bgcolor=3D"#C8BCA0" width=3D150 border=3D2 cellspacing=3D2 = cellborder=3D2 cellpadding=3D0> <TR><TH colspan=3D2><p class=3D"title">Scribblings Recommended = Sites</p></TH></TR> <TR><TD rowspan=3D2> <SELECT size=3D5 name=3D"list" id=3D"list" = onChange=3D"changeLink(this.selectedIndex)"> <!-- the "---------------" on the next line is used to set the width of = the select box. if you don't use this, netscape navigator will not show = the list box properly, so make sure it is always wide enough for your = items to fit --> <OPTION value=3D0 selected>----------------------- <OPTION value=3D1> <OPTION value=3D2> <OPTION value=3D3> <OPTION value=3D4> <option value=3D5> </SELECT> </TD><TD> <INPUT name=3D"addr" type=3D"hidden" size=3D"46"> <CENTER> <NOBR> <INPUT type=3D"button" name=3D"Go" value=3D"Go to Site" = style=3D"background:#fff8dc" = onClick=3D"goLink(document.links.addr.value,document.links.list.selectedI= ndex)"> <INPUT type=3D"button" name=3D"submit" value=3D"Tasting Notes" = style=3D"background:#fff8dc" = onClick=3D"tastingNotes(document.links.list.selectedIndex)"> </NOBR> </CENTER> </TD></TR><TR><TD> <TEXTAREA name=3D"desc" cols=3D"39" rows=3D"8" readonly></TEXTAREA> </FORM> <center><FORM name=3D"notes" method=3D"get" = action=3D"http://search.atomz.com/search/"> <!-- change the sp-q tag to hidden instead of text -->=20 <INPUT type=3D"text" name=3D"sp-q" value=3D"--Select--"> <INPUT type=3D"hidden" name=3D"sp-a" value=3D"000130e8-sp00000000"> </FORM></center> </TD></TR></TABLE> </CENTER> Andrew Barrow Scribblings: weekly wine and drink email newsletter [w] : http://www.andys-scribblings.co.uk [m] : arb@xxxxxxxxxxxxxxxxxxxxxxx ------=_NextPart_000_00E1_01C1453B.B0DAC980 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=3DContent-Type content=3D"text/html; = charset=3Diso-8859-1"> <META content=3D"MSHTML 6.00.2600.0" name=3DGENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=3D#fffbf0> <DIV><FONT color=3D#800000 size=3D2>My java writing ability amounts to = nothing. This=20 script was modified for me by SnarfLT who recommended this list for = further=20 modifications. I wish to have a variable sized jpeg or gif displayed,=20 next to the descriptive text, which would = be different depending=20 on the site selected. This, as an explanation, will be the company logo. = The=20 full page can be seen at <A=20 href=3D"http://www.andys-scribblings.co.uk/linkstest.html">http://www.and= ys-scribblings.co.uk/linkstest.html</A></FONT></DIV> <DIV><FONT color=3D#800000 size=3D2></FONT> </DIV> <DIV><FONT size=3D2> <P><FONT color=3D#800000></FONT><BR></FONT><FONT color=3D#800000=20 size=3D2><SCRIPT></FONT><FONT size=3D2><BR></FONT><I><FONT = color=3D#808000=20 size=3D2><!--</I></FONT><FONT size=3D2><BR></FONT><I><FONT = color=3D#808000=20 size=3D2>/* */</I></FONT><FONT size=3D2><BR></FONT><I><FONT = color=3D#808000 size=3D2>/*=20 written by "Snarf" (snarflt@xxxxxxx) */</I></FONT><FONT=20 size=3D2><BR></FONT><I><FONT color=3D#808000 size=3D2>/* = */</I></FONT><FONT=20 size=3D2><BR><BR></FONT><I><FONT color=3D#808000 size=3D2>// Start=20 Links</I></FONT><FONT size=3D2><BR><B>var</B> link0 </FONT><FONT = color=3D#0000f0=20 size=3D2>=3D</FONT><FONT size=3D2> <B>new</B> Array</FONT><FONT = color=3D#0000f0=20 size=3D2>()</FONT><FONT size=3D2><BR>link0</FONT><FONT color=3D#0000f0=20 size=3D2>[</FONT><FONT color=3D#ff00f0 size=3D2>0</FONT><FONT = color=3D#0000f0=20 size=3D2>]=3D</FONT><I><FONT size=3D2>"-- Select = --"</I>;<BR>link0</FONT><FONT=20 color=3D#0000f0 size=3D2>[</FONT><FONT color=3D#ff00f0 = size=3D2>1</FONT><FONT=20 color=3D#0000f0 size=3D2>]=3D</FONT><I><FONT size=3D2>"Address will be = shown here, click=20 the 'Go' button"</I>;<BR>link0</FONT><FONT color=3D#0000f0 = size=3D2>[</FONT><FONT=20 color=3D#ff00f0 size=3D2>2</FONT><FONT color=3D#0000f0 = size=3D2>]=3D</FONT><I><FONT=20 size=3D2>"Choose a website from the list on the left, and detailes of = the retailer=20 and the wines it sells will be displayed here.\n\nScript written by = 'Snarf'=20 (snarflt@xxxxxxx)"</I>;<BR><B>var</B> link1 </FONT><FONT color=3D#0000f0 = size=3D2>=3D</FONT><FONT size=3D2> <B>new</B> Array</FONT><FONT = color=3D#0000f0=20 size=3D2>()</FONT><FONT size=3D2><BR>link1</FONT><FONT color=3D#0000f0=20 size=3D2>[</FONT><FONT color=3D#ff00f0 size=3D2>0</FONT><FONT = color=3D#0000f0=20 size=3D2>]=3D</FONT><I><FONT = size=3D2>"ChateuOnline"</I>;<BR>link1</FONT><FONT=20 color=3D#0000f0 size=3D2>[</FONT><FONT color=3D#ff00f0 = size=3D2>1</FONT><FONT=20 color=3D#0000f0 size=3D2>]=3D</FONT><I><FONT=20 size=3D2>"http://affiliation.chateauonline.com/uk/Tracking/clic.asp?partn= er=3DChateauOnline&p1=3DN%3Aa%E1&p2=3DN%3Aca&p3=3DN7=EDw/"</I= >;<BR>link1</FONT><FONT=20 color=3D#0000f0 size=3D2>[</FONT><FONT color=3D#ff00f0 = size=3D2>2</FONT><FONT=20 color=3D#0000f0 size=3D2>]=3D</FONT><I><FONT size=3D2>"A fine selection = of wines from=20 the world over. Nicely designed site with plenty of `click` options. = Loads of=20 choice from everyday `quaffers` through to choice connoisseur bottles. = Lots of=20 pre-mixed cases, well-known producers mixed with choice exclusives. Food = matching and cellaring tips complete good tasting notes. The only thing = that=20 annoyed me was that most of the wines must be brought in either cases of = 3 or 6.=20 But some bottles can be purchased individually."</I>;<BR><B>var</B> = link2=20 </FONT><FONT color=3D#0000f0 size=3D2>=3D</FONT><FONT size=3D2> = <B>new</B>=20 Array</FONT><FONT color=3D#0000f0 size=3D2>()</FONT><FONT=20 size=3D2><BR>link2</FONT><FONT color=3D#0000f0 size=3D2>[</FONT><FONT = color=3D#ff00f0=20 size=3D2>0</FONT><FONT color=3D#0000f0 size=3D2>]=3D</FONT><I><FONT = size=3D2>"Allez=20 Vins!"</I>;<BR>link2</FONT><FONT color=3D#0000f0 size=3D2>[</FONT><FONT=20 color=3D#ff00f0 size=3D2>1</FONT><FONT color=3D#0000f0 = size=3D2>]=3D</FONT><I><FONT=20 size=3D2>"http://www.allezvins.co.uk/"</I>;<BR>link2</FONT><FONT = color=3D#0000f0=20 size=3D2>[</FONT><FONT color=3D#ff00f0 size=3D2>2</FONT><FONT = color=3D#0000f0=20 size=3D2>]=3D</FONT><I><FONT size=3D2>"Interesting and quality wines are = the mainstay=20 here. Established in 1987 Allez Vins! specialises in small domaines from = the=20 lesser known regions of France. Cahors and Madiran are particularly = strong with=20 some lovely wines from Bergerac, Gascony and the Rhone and Loire. The = website is=20 brimming with enthusiasm and exudes a passion for the wines. Well worth = checking=20 out. No minimum purchase, delivery per order = =A36.50."</I>;<BR><B>var</B> link3=20 </FONT><FONT color=3D#0000f0 size=3D2>=3D</FONT><FONT size=3D2> = <B>new</B>=20 Array</FONT><FONT color=3D#0000f0 size=3D2>()</FONT><FONT=20 size=3D2><BR>link3</FONT><FONT color=3D#0000f0 size=3D2>[</FONT><FONT = color=3D#ff00f0=20 size=3D2>0</FONT><FONT color=3D#0000f0 size=3D2>]=3D</FONT><I><FONT=20 size=3D2>"WineSmart"</I>;<BR>link3</FONT><FONT color=3D#0000f0 = size=3D2>[</FONT><FONT=20 color=3D#ff00f0 size=3D2>1</FONT><FONT color=3D#0000f0 = size=3D2>]=3D</FONT><I><FONT=20 size=3D2>"http://www.qksrv.net/click-908807-5341780/"</I>;<BR>link3</FONT= ><FONT=20 color=3D#0000f0 size=3D2>[</FONT><FONT color=3D#ff00f0 = size=3D2>2</FONT><FONT=20 color=3D#0000f0 size=3D2>]=3D</FONT><I><FONT size=3D2>"I have had some = great wines from=20 this European based company. They concentrate on New World wines that = have=20 little distribution in the UK. But they ship throughout Europe. Quality = wines=20 from California, New Zealand, Australia and everywhere else too. There = are a=20 smattering of choice wines from Europe as well. The site is very easy to = use=20 with plenty of information and choice. No minimum delivery. The postal = charge=20 varies depending on country."</I>;<BR><B>var</B> link4 </FONT><FONT=20 color=3D#0000f0 size=3D2>=3D</FONT><FONT size=3D2> <B>new</B> = Array</FONT><FONT=20 color=3D#0000f0 size=3D2>()</FONT><FONT size=3D2><BR>link4</FONT><FONT = color=3D#0000f0=20 size=3D2>[</FONT><FONT color=3D#ff00f0 size=3D2>0</FONT><FONT = color=3D#0000f0=20 size=3D2>]=3D</FONT><I><FONT size=3D2>"World = Marachel"</I>;<BR>link4</FONT><FONT=20 color=3D#0000f0 size=3D2>[</FONT><FONT color=3D#ff00f0 = size=3D2>1</FONT><FONT=20 color=3D#0000f0 size=3D2>]=3D</FONT><I><FONT=20 size=3D2>"http://www.worldmarechal.com/marechal/uk/pub/lien_externe_uk.cf= m?choix=3Dboutique/boutique.cfm&affilie=3Dscribblings"</I>;<BR>link4<= /FONT><FONT=20 color=3D#0000f0 size=3D2>[</FONT><FONT color=3D#ff00f0 = size=3D2>2</FONT><FONT=20 color=3D#0000f0 size=3D2>]=3D</FONT><I><FONT size=3D2>"A French based = company so=20 obviously concentrating on all things French. There is an added `food` = dimension=20 to this site with plenty of tasty treats and specialist foods through to = complete dishes to match with the wine offerings. Although strong on = France=20 there are a smattering of wines from Australia, Spain, California and=20 elsewhere."</I>;<BR><B>var</B> link5 </FONT><FONT color=3D#0000f0=20 size=3D2>=3D</FONT><FONT size=3D2> <B>new</B> Array</FONT><FONT = color=3D#0000f0=20 size=3D2>()</FONT><FONT size=3D2><BR>link5</FONT><FONT color=3D#0000f0=20 size=3D2>[</FONT><FONT color=3D#ff00f0 size=3D2>0</FONT><FONT = color=3D#0000f0=20 size=3D2>]=3D</FONT><I><FONT size=3D2>"number = 5"</I>;<BR>link5</FONT><FONT=20 color=3D#0000f0 size=3D2>[</FONT><FONT color=3D#ff00f0 = size=3D2>1</FONT><FONT=20 color=3D#0000f0 size=3D2>]=3D</FONT><I><FONT size=3D2>"Address will be = shown here, click=20 the 'Go' button"</I>;<BR>link5</FONT><FONT color=3D#0000f0 = size=3D2>[</FONT><FONT=20 color=3D#ff00f0 size=3D2>2</FONT><FONT color=3D#0000f0 = size=3D2>]=3D</FONT><I><FONT=20 size=3D2>"Choose a website from the list on the left, and detailes of = the retailer=20 and the wines it sells will be displayed here.\n\nScript written by = 'Snarf'=20 (snarflt@xxxxxxx)"</I>;<BR><BR></FONT><I><FONT color=3D#808000 = size=3D2>// define=20 the variable numLinks[0] with the number of links you have above. In = this case=20 the last defined link above is link4, so we have 4 = links.</I></FONT><FONT=20 size=3D2><BR></FONT><I><FONT color=3D#808000 size=3D2>// make sure there = is the same=20 amount of <OPTION> tags as there are links, each with the = numerical value=20 corresponding to the link that will go there</I></FONT><FONT=20 size=3D2><BR><B>var</B> numLinks</FONT><FONT color=3D#0000f0 = size=3D2>=3D</FONT><B><FONT=20 size=3D2>new</B> Array</FONT><FONT color=3D#0000f0 = size=3D2>()</FONT><FONT=20 size=3D2><BR>numLinks</FONT><FONT color=3D#0000f0 size=3D2>[</FONT><FONT = color=3D#ff00f0=20 size=3D2>0</FONT><FONT color=3D#0000f0 size=3D2>]=3D</FONT><I><FONT=20 size=3D2>"5"</I><BR><BR></FONT><I><FONT color=3D#808000 size=3D2>// = Create the Select=20 List</I></FONT><FONT size=3D2><BR><B>function</B> firstLoad</FONT><FONT=20 color=3D#0000f0 size=3D2>()</FONT><FONT size=3D2> <B>{</B><BR><B>for</B> = </FONT><FONT=20 color=3D#0000f0 size=3D2>(</FONT><FONT size=3D2>i</FONT><FONT = color=3D#0000f0=20 size=3D2>=3D</FONT><FONT color=3D#ff00f0 size=3D2>0</FONT><FONT = size=3D2>;i</FONT><FONT=20 color=3D#0000f0 size=3D2><=3D</FONT><FONT = size=3D2>numLinks</FONT><FONT color=3D#0000f0=20 size=3D2>[</FONT><FONT color=3D#ff00f0 size=3D2>0</FONT><FONT = color=3D#0000f0=20 size=3D2>]</FONT><FONT size=3D2>;i</FONT><FONT color=3D#0000f0 = size=3D2>++)</FONT><FONT=20 size=3D2> <B>{</B><BR>document</FONT><FONT color=3D#0000f0 = size=3D2>.</FONT><FONT=20 size=3D2>links</FONT><FONT color=3D#0000f0 size=3D2>.</FONT><FONT=20 size=3D2>elements</FONT><FONT color=3D#0000f0 size=3D2>[</FONT><FONT = color=3D#ff00f0=20 size=3D2>0</FONT><FONT color=3D#0000f0 size=3D2>].</FONT><FONT=20 size=3D2>options</FONT><FONT color=3D#0000f0 size=3D2>[</FONT><FONT=20 size=3D2>i</FONT><FONT color=3D#0000f0 size=3D2>].</FONT><FONT=20 size=3D2>value</FONT><FONT color=3D#0000f0 size=3D2>=3D</FONT><FONT=20 size=3D2>i<BR>document</FONT><FONT color=3D#0000f0 = size=3D2>.</FONT><FONT=20 size=3D2>links</FONT><FONT color=3D#0000f0 size=3D2>.</FONT><FONT=20 size=3D2>elements</FONT><FONT color=3D#0000f0 size=3D2>[</FONT><FONT = color=3D#ff00f0=20 size=3D2>0</FONT><FONT color=3D#0000f0 size=3D2>].</FONT><FONT=20 size=3D2>options</FONT><FONT color=3D#0000f0 size=3D2>[</FONT><FONT=20 size=3D2>i</FONT><FONT color=3D#0000f0 size=3D2>].</FONT><FONT = size=3D2>text</FONT><FONT=20 color=3D#0000f0 size=3D2>=3D</FONT><B><FONT = size=3D2>eval</B></FONT><FONT color=3D#0000f0=20 size=3D2>(</FONT><I><FONT size=3D2>"link"</I></FONT><FONT = color=3D#0000f0=20 size=3D2>+</FONT><FONT size=3D2> i </FONT><FONT color=3D#0000f0=20 size=3D2>+</FONT><I><FONT size=3D2>"[0]"</I></FONT><FONT color=3D#0000f0 = size=3D2>)</FONT><FONT size=3D2><BR><B>}</B><BR>document</FONT><FONT = color=3D#0000f0=20 size=3D2>.</FONT><FONT size=3D2>notes</FONT><FONT color=3D#0000f0 = size=3D2>.</FONT><FONT=20 size=3D2>elements</FONT><FONT color=3D#0000f0 size=3D2>[</FONT><FONT = color=3D#ff00f0=20 size=3D2>0</FONT><FONT color=3D#0000f0 size=3D2>].</FONT><FONT=20 size=3D2>value</FONT><FONT color=3D#0000f0 size=3D2>=3D</FONT><FONT=20 size=3D2>link0</FONT><FONT color=3D#0000f0 size=3D2>[</FONT><FONT = color=3D#ff00f0=20 size=3D2>0</FONT><FONT color=3D#0000f0 size=3D2>]</FONT><FONT=20 size=3D2><BR>document</FONT><FONT color=3D#0000f0 size=3D2>.</FONT><FONT = size=3D2>links</FONT><FONT color=3D#0000f0 size=3D2>.</FONT><FONT=20 size=3D2>elements</FONT><FONT color=3D#0000f0 size=3D2>[</FONT><FONT = color=3D#ff00f0=20 size=3D2>1</FONT><FONT color=3D#0000f0 size=3D2>].</FONT><FONT=20 size=3D2>value</FONT><FONT color=3D#0000f0 size=3D2>=3D</FONT><FONT=20 size=3D2>link0</FONT><FONT color=3D#0000f0 size=3D2>[</FONT><FONT = color=3D#ff00f0=20 size=3D2>1</FONT><FONT color=3D#0000f0 size=3D2>]</FONT><FONT=20 size=3D2><BR>document</FONT><FONT color=3D#0000f0 size=3D2>.</FONT><FONT = size=3D2>links</FONT><FONT color=3D#0000f0 size=3D2>.</FONT><FONT=20 size=3D2>elements</FONT><FONT color=3D#0000f0 size=3D2>[</FONT><FONT = color=3D#ff00f0=20 size=3D2>4</FONT><FONT color=3D#0000f0 size=3D2>].</FONT><FONT=20 size=3D2>value</FONT><FONT color=3D#0000f0 size=3D2>=3D</FONT><FONT=20 size=3D2>link0</FONT><FONT color=3D#0000f0 size=3D2>[</FONT><FONT = color=3D#ff00f0=20 size=3D2>2</FONT><FONT color=3D#0000f0 size=3D2>]</FONT><FONT=20 size=3D2><BR><B>}</B><BR><BR><B>function</B> changeLink</FONT><FONT = color=3D#0000f0=20 size=3D2>(</FONT><FONT size=3D2>num</FONT><FONT color=3D#0000f0 = size=3D2>)</FONT><FONT=20 size=3D2> <B>{</B><BR><B>if</B> </FONT><FONT color=3D#0000f0 = size=3D2>(</FONT><FONT=20 size=3D2>num </FONT><FONT color=3D#0000f0 size=3D2><=3D</FONT><FONT = size=3D2>=20 numLinks</FONT><FONT color=3D#0000f0 size=3D2>[</FONT><FONT = color=3D#ff00f0=20 size=3D2>0</FONT><FONT color=3D#0000f0 size=3D2>])</FONT><FONT size=3D2> = <B>{</B><BR>document</FONT><FONT color=3D#0000f0 size=3D2>.</FONT><FONT=20 size=3D2>notes</FONT><FONT color=3D#0000f0 size=3D2>.</FONT><FONT=20 size=3D2>elements</FONT><FONT color=3D#0000f0 size=3D2>[</FONT><FONT = color=3D#ff00f0=20 size=3D2>0</FONT><FONT color=3D#0000f0 size=3D2>].</FONT><FONT=20 size=3D2>value</FONT><FONT color=3D#0000f0 size=3D2>=3D</FONT><B><FONT=20 size=3D2>eval</B></FONT><FONT color=3D#0000f0 size=3D2>(</FONT><I><FONT=20 size=3D2>"link"</I></FONT><FONT color=3D#0000f0 size=3D2>+</FONT><FONT = size=3D2> num=20 </FONT><FONT color=3D#0000f0 size=3D2>+</FONT><I><FONT = size=3D2>"[0]"</I></FONT><FONT=20 color=3D#0000f0 size=3D2>)</FONT><FONT size=3D2><BR>document</FONT><FONT = color=3D#0000f0=20 size=3D2>.</FONT><FONT size=3D2>links</FONT><FONT color=3D#0000f0 = size=3D2>.</FONT><FONT=20 size=3D2>elements</FONT><FONT color=3D#0000f0 size=3D2>[</FONT><FONT = color=3D#ff00f0=20 size=3D2>1</FONT><FONT color=3D#0000f0 size=3D2>].</FONT><FONT=20 size=3D2>value</FONT><FONT color=3D#0000f0 size=3D2>=3D</FONT><B><FONT=20 size=3D2>eval</B></FONT><FONT color=3D#0000f0 size=3D2>(</FONT><I><FONT=20 size=3D2>"link"</I></FONT><FONT color=3D#0000f0 size=3D2>+</FONT><FONT = size=3D2> num=20 </FONT><FONT color=3D#0000f0 size=3D2>+</FONT><I><FONT = size=3D2>"[1]"</I></FONT><FONT=20 color=3D#0000f0 size=3D2>)</FONT><FONT size=3D2><BR>document</FONT><FONT = color=3D#0000f0=20 size=3D2>.</FONT><FONT size=3D2>links</FONT><FONT color=3D#0000f0 = size=3D2>.</FONT><FONT=20 size=3D2>elements</FONT><FONT color=3D#0000f0 size=3D2>[</FONT><FONT = color=3D#ff00f0=20 size=3D2>4</FONT><FONT color=3D#0000f0 size=3D2>].</FONT><FONT=20 size=3D2>value</FONT><FONT color=3D#0000f0 size=3D2>=3D</FONT><B><FONT=20 size=3D2>eval</B></FONT><FONT color=3D#0000f0 size=3D2>(</FONT><I><FONT=20 size=3D2>"link"</I></FONT><FONT color=3D#0000f0 size=3D2>+</FONT><FONT = size=3D2> num=20 </FONT><FONT color=3D#0000f0 size=3D2>+</FONT><I><FONT = size=3D2>"[2]"</I></FONT><FONT=20 color=3D#0000f0 size=3D2>)</FONT><FONT=20 size=3D2><BR><B>}</B><BR><B>}</B><BR><BR><B>function</B> = goLink</FONT><FONT=20 color=3D#0000f0 size=3D2>(</FONT><FONT size=3D2>linkAddress</FONT><FONT = color=3D#0000f0=20 size=3D2>,</FONT><FONT size=3D2>selected</FONT><FONT color=3D#0000f0=20 size=3D2>)</FONT><FONT size=3D2> <B>{</B><BR><B>if</B> </FONT><FONT = color=3D#0000f0=20 size=3D2>(</FONT><FONT size=3D2>selected </FONT><FONT color=3D#0000f0=20 size=3D2>></FONT><FONT size=3D2> <I>"0"</I></FONT><FONT = color=3D#0000f0=20 size=3D2>)</FONT><FONT size=3D2> <B>{</B><BR>window</FONT><FONT = color=3D#0000f0=20 size=3D2>.</FONT><B><FONT size=3D2>open</B></FONT><FONT color=3D#0000f0=20 size=3D2>(</FONT><I><FONT size=3D2>""</I> </FONT><FONT color=3D#0000f0=20 size=3D2>+</FONT><FONT size=3D2> linkAddress </FONT><FONT = color=3D#0000f0=20 size=3D2>+</FONT><FONT size=3D2> <I>""</I></FONT><FONT color=3D#0000f0=20 size=3D2>,</FONT><FONT size=3D2> <I>"Window"</I></FONT><FONT = color=3D#0000f0=20 size=3D2>,</FONT><FONT size=3D2> </FONT><FONT color=3D#0000f0 = size=3D2>[</FONT><FONT=20 size=3D2>'width</FONT><FONT color=3D#0000f0 size=3D2>=3D</FONT><FONT = color=3D#ff00f0=20 size=3D2>150</FONT><FONT color=3D#0000f0 size=3D2>,</FONT><FONT=20 size=3D2>height</FONT><FONT color=3D#0000f0 size=3D2>=3D</FONT><FONT = color=3D#ff00f0=20 size=3D2>200</FONT><FONT color=3D#0000f0 size=3D2>,</FONT><FONT=20 size=3D2>toolbar</FONT><FONT color=3D#0000f0 size=3D2>=3D</FONT><FONT = color=3D#ff00f0=20 size=3D2>1</FONT><FONT color=3D#0000f0 size=3D2>,</FONT><FONT=20 size=3D2>location</FONT><FONT color=3D#0000f0 size=3D2>=3D</FONT><FONT = color=3D#ff00f0=20 size=3D2>1</FONT><FONT color=3D#0000f0 size=3D2>,</FONT><FONT=20 size=3D2>directories</FONT><FONT color=3D#0000f0 = size=3D2>=3D</FONT><FONT color=3D#ff00f0=20 size=3D2>1</FONT><FONT color=3D#0000f0 size=3D2>,</FONT><FONT=20 size=3D2>status</FONT><FONT color=3D#0000f0 size=3D2>=3D</FONT><FONT = color=3D#ff00f0=20 size=3D2>1</FONT><FONT color=3D#0000f0 size=3D2>,</FONT><FONT=20 size=3D2>menubar</FONT><FONT color=3D#0000f0 size=3D2>=3D</FONT><FONT = color=3D#ff00f0=20 size=3D2>1</FONT><FONT color=3D#0000f0 size=3D2>,</FONT><FONT=20 size=3D2>scrollbars</FONT><FONT color=3D#0000f0 size=3D2>=3D</FONT><FONT = color=3D#ff00f0=20 size=3D2>1</FONT><FONT color=3D#0000f0 size=3D2>,</FONT><FONT=20 size=3D2>resizable</FONT><FONT color=3D#0000f0 size=3D2>=3D</FONT><FONT = color=3D#ff00f0=20 size=3D2>1</FONT><FONT size=3D2>'</FONT><FONT color=3D#0000f0 = size=3D2>])</FONT><FONT=20 size=3D2><BR><B>}</B><BR><B>}</B><BR><BR><B>function</B> = tastingNotes</FONT><FONT=20 color=3D#0000f0 size=3D2>(</FONT><FONT size=3D2>selected</FONT><FONT = color=3D#0000f0=20 size=3D2>)</FONT><FONT size=3D2> <B>{</B><BR><B>if</B> </FONT><FONT = color=3D#0000f0=20 size=3D2>(</FONT><FONT size=3D2>selected </FONT><FONT color=3D#0000f0=20 size=3D2>></FONT><FONT size=3D2> <I>"0"</I></FONT><FONT = color=3D#0000f0=20 size=3D2>)</FONT><FONT size=3D2> <B>{</B><BR>document</FONT><FONT = color=3D#0000f0=20 size=3D2>.</FONT><FONT size=3D2>notes</FONT><FONT color=3D#0000f0=20 size=3D2>.</FONT><B><FONT size=3D2>submit</B></FONT><FONT = color=3D#0000f0=20 size=3D2>()</FONT><FONT = size=3D2><BR><B>}</B><BR><B>}</B><BR></FONT><I><FONT=20 color=3D#808000 size=3D2>//--></I></FONT><FONT=20 size=3D2><BR></SCRIPT><BR></FONT><FONT color=3D#800000 = size=3D2><script=20 type=3D"text/javascript" language=3D"JavaScript1.2"></FONT><FONT=20 size=3D2><BR><B>var</B> bookmarkurl</FONT><FONT color=3D#0000f0=20 size=3D2>=3D</FONT><I><FONT=20 size=3D2>"http://www.andys-scribblings.co.uk"</I><BR><B>var</B>=20 bookmarktitle</FONT><FONT color=3D#0000f0 size=3D2>=3D</FONT><I><FONT = size=3D2>"Andy's=20 Scribblings- Weekly drinks newsletter"</I><BR><B>function</B>=20 addbookmark</FONT><FONT color=3D#0000f0 size=3D2>()</FONT><B><FONT=20 size=3D2>{</B><BR><B>if</B> </FONT><FONT color=3D#0000f0 = size=3D2>(</FONT><FONT=20 size=3D2>document</FONT><FONT color=3D#0000f0 size=3D2>.</FONT><FONT=20 size=3D2>all</FONT><FONT color=3D#0000f0 size=3D2>)</FONT><FONT=20 size=3D2><BR>window</FONT><FONT color=3D#0000f0 size=3D2>.</FONT><FONT=20 size=3D2>external</FONT><FONT color=3D#0000f0 size=3D2>.</FONT><FONT=20 size=3D2>AddFavorite</FONT><FONT color=3D#0000f0 size=3D2>(</FONT><FONT=20 size=3D2>bookmarkurl</FONT><FONT color=3D#0000f0 size=3D2>,</FONT><FONT=20 size=3D2>bookmarktitle</FONT><FONT color=3D#0000f0 = size=3D2>)</FONT><FONT=20 size=3D2><BR><B>}</B><BR></FONT><FONT color=3D#800000=20 size=3D2></script></FONT></P><FONT color=3D#800000 size=3D2><FONT = size=3D2> <P><BR><FORM name=3D</FONT><FONT color=3D#0000f0 = size=3D2>"links"</FONT><FONT=20 size=3D2>><BR></FONT><FONT color=3D#008000 = size=3D2><TABLE</FONT><FONT size=3D2>=20 </FONT><FONT color=3D#008000 size=3D2>bgcolor</FONT><FONT = size=3D2>=3D</FONT><FONT=20 color=3D#0000f0 size=3D2>"#C8BCA0"</FONT><FONT size=3D2> </FONT><FONT = color=3D#008000=20 size=3D2>width</FONT><FONT size=3D2>=3D</FONT><FONT color=3D#0000f0=20 size=3D2>150</FONT><FONT size=3D2> </FONT><FONT color=3D#008000=20 size=3D2>border</FONT><FONT size=3D2>=3D</FONT><FONT color=3D#0000f0=20 size=3D2>2</FONT><FONT size=3D2> </FONT><FONT color=3D#008000=20 size=3D2>cellspacing</FONT><FONT size=3D2>=3D</FONT><FONT = color=3D#0000f0=20 size=3D2>2</FONT><FONT size=3D2> </FONT><FONT color=3D#008000=20 size=3D2>cellborder</FONT><FONT size=3D2>=3D</FONT><FONT color=3D#0000f0 = size=3D2>2</FONT><FONT size=3D2> </FONT><FONT color=3D#008000=20 size=3D2>cellpadding</FONT><FONT size=3D2>=3D</FONT><FONT = color=3D#0000f0=20 size=3D2>0</FONT><FONT color=3D#008000 size=3D2>></FONT><FONT=20 size=3D2><BR></FONT><FONT color=3D#008000 = size=3D2><TR><TH</FONT><FONT=20 size=3D2> </FONT><FONT color=3D#008000 size=3D2>colspan</FONT><FONT=20 size=3D2>=3D</FONT><FONT color=3D#0000f0 size=3D2>2</FONT><FONT = color=3D#008000=20 size=3D2>></FONT><FONT size=3D2><p class=3D</FONT><FONT = color=3D#0000f0=20 size=3D2>"title"</FONT><FONT size=3D2>>Scribblings Recommended=20 Sites</p></FONT><FONT color=3D#008000=20 size=3D2></TH></TR></FONT><FONT size=3D2><BR></FONT><FONT = color=3D#008000=20 size=3D2><TR><TD</FONT><FONT size=3D2> </FONT><FONT = color=3D#008000=20 size=3D2>rowspan</FONT><FONT size=3D2>=3D</FONT><FONT color=3D#0000f0=20 size=3D2>2</FONT><FONT color=3D#008000 size=3D2>></FONT><FONT = size=3D2><BR><SELECT=20 size=3D</FONT><FONT color=3D#0000f0 size=3D2>5</FONT><FONT size=3D2> = name=3D</FONT><FONT=20 color=3D#0000f0 size=3D2>"list"</FONT><FONT size=3D2> id=3D</FONT><FONT = color=3D#0000f0=20 size=3D2>"list"</FONT><FONT size=3D2> onChange=3D</FONT><FONT = color=3D#0000f0=20 size=3D2>"changeLink(this.selectedIndex)"</FONT><FONT=20 size=3D2>><BR></FONT><I><FONT color=3D#808000 size=3D2><!-- the=20 "---------------" on the next line is used to set the width of the = select box.=20 if you don't use this, netscape navigator will not show the list box = properly,=20 so make sure it is always wide enough for your items to fit=20 --></I></FONT><FONT size=3D2><BR><OPTION value=3D</FONT><FONT = color=3D#0000f0=20 size=3D2>0</FONT><FONT size=3D2> = selected>-----------------------<BR><OPTION=20 value=3D</FONT><FONT color=3D#0000f0 size=3D2>1</FONT><FONT = size=3D2>><BR><OPTION=20 value=3D</FONT><FONT color=3D#0000f0 size=3D2>2</FONT><FONT = size=3D2>><BR><OPTION=20 value=3D</FONT><FONT color=3D#0000f0 size=3D2>3</FONT><FONT = size=3D2>><BR><OPTION=20 value=3D</FONT><FONT color=3D#0000f0 size=3D2>4</FONT><FONT = size=3D2>><BR><option=20 value=3D</FONT><FONT color=3D#0000f0 size=3D2>5</FONT><FONT=20 size=3D2>><BR></SELECT><BR></FONT><FONT color=3D#008000=20 size=3D2></TD><TD></FONT><FONT size=3D2><BR><INPUT = name=3D</FONT><FONT=20 color=3D#0000f0 size=3D2>"addr"</FONT><FONT size=3D2> = type=3D</FONT><FONT color=3D#0000f0=20 size=3D2>"hidden"</FONT><FONT size=3D2> size=3D</FONT><FONT = color=3D#0000f0=20 size=3D2>"46"</FONT><FONT=20 size=3D2>><BR><CENTER><BR><NOBR><BR><INPUT = type=3D</FONT><FONT=20 color=3D#0000f0 size=3D2>"button"</FONT><FONT size=3D2> = name=3D</FONT><FONT=20 color=3D#0000f0 size=3D2>"Go"</FONT><FONT size=3D2> value=3D</FONT><FONT = color=3D#0000f0=20 size=3D2>"Go to Site"</FONT><FONT size=3D2> style=3D</FONT><FONT = color=3D#0000f0=20 size=3D2>"background:#fff8dc"</FONT><FONT size=3D2> = onClick=3D</FONT><FONT=20 color=3D#0000f0=20 size=3D2>"goLink(document.links.addr.value,document.links.list.selectedIn= dex)"</FONT><FONT=20 size=3D2>><BR><INPUT type=3D</FONT><FONT color=3D#0000f0=20 size=3D2>"button"</FONT><FONT size=3D2> name=3D</FONT><FONT = color=3D#0000f0=20 size=3D2>"submit"</FONT><FONT size=3D2> value=3D</FONT><FONT = color=3D#0000f0=20 size=3D2>"Tasting Notes"</FONT><FONT size=3D2> style=3D</FONT><FONT = color=3D#0000f0=20 size=3D2>"background:#fff8dc"</FONT><FONT size=3D2> = onClick=3D</FONT><FONT=20 color=3D#0000f0=20 size=3D2>"tastingNotes(document.links.list.selectedIndex)"</FONT><FONT=20 size=3D2>><BR></NOBR><BR></CENTER><BR></FONT><FONT = color=3D#008000=20 size=3D2></TD></TR><TR><TD></FONT><FONT=20 size=3D2><BR><TEXTAREA name=3D</FONT><FONT color=3D#0000f0=20 size=3D2>"desc"</FONT><FONT size=3D2> cols=3D</FONT><FONT = color=3D#0000f0=20 size=3D2>"39"</FONT><FONT size=3D2> rows=3D</FONT><FONT color=3D#0000f0=20 size=3D2>"8"</FONT><FONT size=3D2>=20 readonly></TEXTAREA><BR></FORM><BR><center><FORM = name=3D</FONT><FONT color=3D#0000f0 size=3D2>"notes"</FONT><FONT = size=3D2>=20 method=3D</FONT><FONT color=3D#0000f0 size=3D2>"get"</FONT><FONT = size=3D2>=20 action=3D</FONT><FONT color=3D#0000f0=20 size=3D2>"http://search.atomz.com/search/"</FONT><FONT=20 size=3D2>><BR></FONT><I><FONT color=3D#808000 size=3D2><!-- change = the sp-q tag=20 to hidden instead of text --></I></FONT><FONT size=3D2> <BR><INPUT = type=3D</FONT><FONT color=3D#0000f0 size=3D2>"text"</FONT><FONT = size=3D2>=20 name=3D</FONT><FONT color=3D#0000f0 size=3D2>"sp-q"</FONT><FONT = size=3D2>=20 value=3D</FONT><FONT color=3D#0000f0 size=3D2>"--Select--"</FONT><FONT=20 size=3D2>><BR><INPUT type=3D</FONT><FONT color=3D#0000f0=20 size=3D2>"hidden"</FONT><FONT size=3D2> name=3D</FONT><FONT = color=3D#0000f0=20 size=3D2>"sp-a"</FONT><FONT size=3D2> value=3D</FONT><FONT = color=3D#0000f0=20 size=3D2>"000130e8-sp00000000"</FONT><FONT=20 size=3D2>><BR></FORM></center><BR></FONT><FONT = color=3D#008000=20 size=3D2></TD></TR></TABLE></FONT><FONT=20 size=3D2><BR></CENTER></P></FONT></FONT></DIV> <DIV><FONT color=3D#800000 size=3D2></FONT> </DIV> <DIV><FONT color=3D#800000 size=3D2>Andrew Barrow<BR>Scribblings: weekly = wine and=20 drink email newsletter<BR>[w] : <A=20 href=3D"http://www.andys-scribblings.co.uk">http://www.andys-scribblings.= co.uk</A><BR>[m] =20 : <A=20 href=3D"mailto:arb@xxxxxxxxxxxxxxxxxxxxxxx">arb@xxxxxxxxxxxxxxxxxxxxxxx</= A></FONT></DIV></BODY></HTML> ------=_NextPart_000_00E1_01C1453B.B0DAC980--
- Prev by Date: [Javascript] Onblur action hanndler
- Next by Date: [Javascript] Closing pop-up window on form submit
- Previous by thread: [Javascript] how can I check for a window being open..
- Next by thread: [Javascript] Adding Picture
- Index(es):