Pasting Kathleen's code above the 1st <html> tag is fine
To add a Doc type see
http://htmlhelp.com/tools/validator/doctype.html
--
_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
_____________________________________________
| Hi Kathleen,
|
| I can't find the !DOCTYPE in the code to put the new code. I'm going to
| paste the code on the page here. There's very little code on this page since
| it is only a test page with a vote button and photo.
| I hope this helps since I really wanted to do this. Thank you. Kathleen
| <html>
|
|
|
| <head>
|
| <meta http-equiv="Content-Language" content="en-us">
|
| <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
|
| <title>New Page 1</title>
|
| <script language="JavaScript">
|
| <!--
|
| function FP_swapImg() {//v1.0
|
| var doc=document,args=arguments,elm,n; doc.$imgSwaps=new Array(); for(n=2;
| n<args.length;
|
| n+=2) { elm=FP_getObjectByID(args[n]); if(elm) {
| doc.$imgSwaps[doc.$imgSwaps.length]=elm;
|
| elm.$src=elm.src; elm.src=args[n+1]; } }
|
| }
|
|
|
| function FP_preloadImgs() {//v1.0
|
| var d=document,a=arguments; if(!d.FP_imgs) d.FP_imgs=new Array();
|
| for(var i=0; i<a.length; i++) { d.FP_imgs
=new Image;
| d.FP_imgs.src=a; }
|
| }
|
|
|
| function FP_getObjectByID(id,o) {//v1.0
|
| var c,el,els,f,m,n; if(!o)o=document; if(o.getElementById)
| el=o.getElementById(id);
|
| else if(o.layers) c=o.layers; else if(o.all) el=o.all[id]; if(el) return el;
|
| if(o.id==id || o.name==id) return o; if(o.childNodes) c=o.childNodes; if(c)
|
| for(n=0; n<c.length; n++) { el=FP_getObjectByID(id,c[n]); if(el) return el; }
|
| f=o.forms; if(f) for(n=0; n<f.length; n++) { els=f[n].elements;
|
| for(m=0; m<els.length; m++){ el=FP_getObjectByID(id,els[n]); if(el) return
| el; } }
|
| return null;
|
| }
|
| // -->
|
| </script>
|
| <meta name="Microsoft Theme" content="sandston 1011, default">
|
| </head>
|
|
|
| <body onload="FP_preloadImgs(/*url*/'images/button20.jpg',
| /*url*/'images/button21.jpg')">
|
|
|
| <p> </p>
|
| <p> </p>
|
| <p align="center"><a href="Vote%20counting.htm">
|
| <img border="0" id="img1" src="images/button1F.jpg" height="20" width="100"
| alt="Vote"
| onmouseover="FP_swapImg(1,0,/*id*/'img1',/*url*/'images/button20.jpg')"
| onmouseout="FP_swapImg(0,0,/*id*/'img1',/*url*/'images/button1F.jpg')"
| onmousedown="FP_swapImg(1,0,/*id*/'img1',/*url*/'images/button21.jpg')"
| onmouseup="FP_swapImg(0,0,/*id*/'img1',/*url*/'images/button20.jpg')"
| fp-style="fp-btn: Embossed Capsule 1" fp-title="Vote"></a>
|
| <img border="0" src="images/21.jpg" width="285" height="213"></p>
|
| <p> </p>
|
|
|
| </body>
|
|
|
| </html>
|
|
|
|
|
| "Kathleen Anderson [MVP - FrontPage]" wrote:
|
| > Courtesy of Jon Spivey (IIRC):
| >
| > In Code View, add this to the top of the page, before the !DOCTYPE
| > statement:
| >
| > <%
| > if request.cookies("Voted") = "yes" then
| > response.redirect "results.asp"
| > else
| > response.cookies("Voted") = "yes"
| > response.cookies("Voted").expires = now() + 90
| > end if
| > %>
| >
| > This will let them vote once every 90 days from the same PC., as long as
| > they don't delete the cookie. Change "results.asp" to the page you want to
| > send them to if they've already voted.
| >
| > HTH,
| >
| > --
| >
| > ~ Kathleen Anderson
| > Microsoft MVP - FrontPage
| > Spider Web Woman Designs
| > web: http://www.spiderwebwoman.com/resources/
| > Please reply to the newsgroup for the benefit of others
| >
| >
| > | > Hi,
| >
| > We want to set up a photo contest but I do not know how to limit the amount
| > of times some one can vote.
| > Right now I set up a interactive voting button with a link to another page
| > with a hit counter and that works fine but people would be able to vote and
| > vote for who they want to win without any limitations.
| > I see on other sites they can limit the amount of votes a certain person
| > votes but of course they might be using different software.
| > Also on the Yahoo polls your vote will only count one time. You can change
| > your vote but not vote more than once.
| > Is there anyway to do this on front page?
| > Thank you.
| > Kathleen
| >
| >
| >