Jump to content

Help with a welcome cookie for my site


knimbus

Recommended Posts

sorry, one of the bugs of IE, is that it doesn't support all JAVA applets. not sure why...anyway, are you opening the file from the place you access it with the DOM thing? if you cant get it to work, try and see if ther is a code view on your editing program.LG

Link to comment
Share on other sites

ummm...that question is not so newbish... let me get my book... :) document.cookie="username=bla;expires=2000,01,01;"that just sets it to expire in the past... it doesn't matter what you set it to here.LG

Link to comment
Share on other sites

I was thinking about giving in and just using an alert box or something but then a thought struck me, I would never be able to get element tags which would ruin my chances of using greasemonkey which, btw is the only reason I started learning javascript...see all very complicated isn't it? :)oh, fyi, the chat worked fine on IE for me , must just not like you :)

Link to comment
Share on other sites

I used PSPad to import the html from the website and I changed it and it worked quite well when I tested it within PSPad's tester, but how do I upload/export/save the code back onto the webpage now? Just clicking save doesn't work because that tries to save it as a PSPad project

Link to comment
Share on other sites

ok, I'll atatch the edited file on here if I can figure out how... its 4:00?!?ok, can't attatch, here is code:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html><head><title>Knimbus | High flying flash animations!</title><meta name="keywords" content="Flash, Animation, Movies, Cartoons, Funny, Music videos, Fighting, Knimbus, Nimbus, Newgrounds"><meta name="description" content="Lots of Flash animations to be put on this site. Flash animations of all different catagories including humour, fighting, musical and more. "><link rel="stylesheet" type="text/css" href="http://images.freewebs.com/Members/Generationz/CSSStyles/WaveForm/Blue/style.css"></head><body ><!-- Copyright 2005 Freewebs Corporation.  All Rights Reserved.FreeWebs offers a limited license for use of this template for Freewebs users only.Under no circumstances may this template be used on a website that is not hosted by FreeWebs.  --><!--   --><div class="fw-container"><div class="fw-head"> <h1>Knimbus</h1> <h3>High flying flash animations!</h3>   <div id="logo-div" class="fw-logo" style="background: transparent url('http://images.freewebs.com/Images/null.gif') no-repeat center">       </div><script>if (document.getElementById("logo-div").style.backgroundImage.indexOf("/null.gif") > 0){document.getElementById("logo-div").style.backgroundImage = "url(http://images.freewebs.com/Members/Generationz/CSSStyles/WaveForm/Blue/bg-head.jpg)";}</script>  <div class="fw-home-link">  <a href="#">Home</a> </div></div><div class="fw-nav-menu"> <ul>  <li><A class="section" href="http://www.knimbus.com/index.htm">Home</A></li>  <li><A class="section" href="http://www.knimbus.com/news.htm">News</A></li>  <li><A class="section" href="http://www.knimbus.com/chat.htm">Chat</A></li></ul> <hr></div><div class="fw-with-mini fw-content"><!-- ParagraphStart 77260356 --> <div class="fw-paragraph" id="fw-paragraph">  <h2><A name="77260356"></A><!-- ParagraphTitleStart --> <!-- ParagraphTitleEnd --></h2>  <div class="fw-text">   <!-- ParagraphBodyStart --><html><head><script type="text/javascript">function getCookie(c_name){if (document.cookie.length>0)  {  c_start=document.cookie.indexOf(c_name + "=")  if (c_start!=-1)    {     c_start=c_start + c_name.length+1     c_end=document.cookie.indexOf(";",c_start)    if (c_end==-1) c_end=document.cookie.length    return unescape(document.cookie.substring(c_start,c_end))    }   }return null}function setCookie(c_name,value,expiredays){var exdate=new Date()exdate.setTime(exdate.getTime()+(expiredays*24*3600*1000))document.cookie=c_name+ "=" +escape(value)+((expiredays==null) ? "" : "; expires="+exdate)}function checkCookie(){username=getCookie('username')if (username!=null)  {document.getElementById('fw-paragraph').innerHTML="Welcome back " + username + "!";}else   {  username=prompt('Please enter your name:',"")  if (username!=null||username!="")    {    setCookie('username',username,365)    }  }}</script></head><body onLoad="checkCookie()"></body></html><!-- ParagraphBodyEnd -->  </div> </div><!-- ParagraphEnd 77260356 --><!-- ParagraphStart 77113648 --> <div class="fw-paragraph">  <h2><A name="77113648"></A><!-- ParagraphTitleStart --> <!-- ParagraphTitleEnd --></h2>  <div class="fw-text">   <!-- ParagraphBodyStart --><P align=center><HR></P><P align=center><FONT face="comic sans ms" size=6>Welcome to</FONT></P><P align=center><!--InsertMediaBegin alt="http://www.knimbus.com/Knimbus picf.swf" width="218" height="175" --><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" width="218" height="175">  <param name="movie" value="http://www.knimbus.com/Knimbus picf.swf">  <param name="quality" value="high">  <embed src="http://www.knimbus.com/Knimbus picf.swf" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="218" height="175">  </embed></object><!--InsertMediaEnd--></P><P align=center><FONT size=2></FONT></P><P align=center><FONT size=2></FONT></P><P align=center>Hello everyone and welcome to Knimbus.com. My aim is to do my best to provide all the users of this site with good quality Flash animations. There are two main sections to the Flash animations: Knimbus animations and Public animations. If you wish to have your animation on Knimbus.com then please go to the Contact page and follow the instructions.</P><P align=center>On Knimbus.com We also use Javascript so please enable that on your browser to unleash this sites full pontential because it is a joint site between Javascript, which you can request off us to use on your own site and of course, Flash animations.</P><P align=left>Hope you enjoy the animations here and wish a long and eventful life for Knimbus.com </P><P align=left>-: Chael McLean</P><P align=left> </P><P align=left>P.S. </P><P align=left>Knimbus.com is still under construction ans so some features mentioned above may not be in operation yet, Please check the News section for updates.</P><P align=left><HR><P></P><!-- ParagraphBodyEnd -->  </div> </div><!-- ParagraphEnd 77113648 --></div><!--<div class="fw-mini-pars"> <hr> <dl>  <dt>Title thing</dt>  <dd><p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Donec arcu orci, posuere porttitor, viverra ac, consectetuer sed, neque. Nunc enim. Mauris molestie sapien sed metus. Quisque mauris ligula, molestie at, luctus in, euismod a, tellus. Nulla eleifend. Mauris rutrum. Vestibulum sollicitudin mollis purus. Morbi eleifend pharetra est. Etiam ut justo. Phasellus vestibulum, est non cursus pretium, augue justo lacinia nunc, pharetra</p></dd>  <dt>Title thing</dt>  <dd><p>sagittis nibh felis eget mi. Nunc at massa at mi laoreet volutpat. Pellentesque quis dolor. Vestibulum ut diam class est rutrum ullamcorper. Aenean eleifend tincclassunt augue.</p></dd>  <dt>Title thing</dt>  <dd><p>sagittis nibh felis eget mi. Nunc at massa at mi laoreet volutpat. Pellentesque quis dolor. Vestibulum ut diam class est rutrum ullamcorper. Aenean eleifend tincclassunt augue.</p></dd>  <dt>Title thing</dt>  <dd><p>sagittis nibh felis eget mi. Nunc at massa at mi laoreet volutpat. Pellentesque quis dolor. Vestibulum ut diam class est rutrum ullamcorper. Aenean eleifend tincclassunt augue.</p></dd> </dl></div>--><div class="fw-footer"> <hr> <p>Copyright Knimbus© 2006 by creator Chael McLean</p></div><div class="fw-tracker"></div></div></body></html><script type = "text/javascript" src="http://counters.freewebs.com/Members/Counters/tracker.jsp"></SCRIPT><!-- PageID 50279088--><!-- members11-29 -->

just upload that.LG

Link to comment
Share on other sites

erro2zq.jpgthat's the error I get after I copy that code you sent and exported it.And yes it is 3.52 am here, don't know about you...I wonder if we have broken a record for longest 1st thread or longest thread between only two users, lolsince its so late, i am looking up stuff to stay awake and i noticed you are number 7 top poster now and number 1 for today, I am number 2 for toady, combined we make up of half of the total posts toaday! lol
Link to comment
Share on other sites

well, your file has not changed. I'm sorry, I don't know anything about the freewebs site builder, but you should try on tha and find some help documentation. sorry, but I've got to leave now, and I won't be back til monday.LG

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...