...

View Full Version : need help with javascript on my page



tarotcardread4u
07-14-2002, 04:46 AM
I inserted this javascript into my keen.com home page and it wont allow me to get rid of it.The home page is now stuck can anyone help?Here is the script.I tried deleting it from the home page.Pressing the ok button says erros on the page at the bottom.I hit the enter key and it goes back again to the original.

How do i get rid of this script?

<form name="dailyinfo"><table border="0" cellspacing="3" cellpadding="0">
<tr>
<td width="100%"><strong>Daily site news</strong><br>
<textarea rows="5" name="dailycontent" cols="40" wrap="virtual"></textarea></td>
</tr>
<tr>
<td width="100%"><table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td width="50%"><a href="javascript:moreinfo()">More Information</a></td>
<td width="50%"><div align="right"><p><input type="text" name="cdate" size="9"></td>
</tr>
</table>
</td>
</tr>
<tr>
<td>
<p align="center"><font face="arial" size="-2">This free script provided by <a href="http://javascriptkit.com">JavaScript
Kit</a></font></p>
</td>
</tr>
</table>
</form>


<script>
<!--

/*
Daily information feed script
By JavaScript Kit (http://javascriptkit.com)
Over 400+ free scripts here!
*/

var dailyinfo=new Array()
var dailyinfolink=new Array()

//define the messages below, where the first one is for the 1st of this month, second is for the 2nd of this month, and so on. You do NOT have to define all of them at once. For example, you can just define enough to cover up to a week.

dailyinfo[1]=''
dailyinfo[2]=''
dailyinfo[3]=''
dailyinfo[4]=''
dailyinfo[5]=''
dailyinfo[6]=''
dailyinfo[7]=''
dailyinfo[8]=''
dailyinfo[9]=''
dailyinfo[10]=''
dailyinfo[11]=''
dailyinfo[12]=''
dailyinfo[13]=''
dailyinfo[14]=''
dailyinfo[15]=''
dailyinfo[16]=''
dailyinfo[17]=''
dailyinfo[18]=''
dailyinfo[19]=''
dailyinfo[20]=''
dailyinfo[21]=''
dailyinfo[22]=''
dailyinfo[23]=''
dailyinfo[24]=''
dailyinfo[25]=''
dailyinfo[26]=''
dailyinfo[27]=''
dailyinfo[28]='Message for the 28th of this month goes here'
dailyinfo[29]='Message for the 29th of this month goes here'
dailyinfo[30]='Message for the 30th of this month goes here'
dailyinfo[31]=''

//if any one of the daily messages above should click through to a URL, specify them here:
dailyinfolink[28]="http://dynamicdrive.com"
dailyinfolink[29]="http://news.com"

var mydate=new Date()
var year=mydate.getYear()
if (year < 1000)
year+=1900
var day=mydate.getDay()
var month=mydate.getMonth()+1
if (month<10)
month="0"+month
var daym=mydate.getDate()

document.dailyinfo.cdate.value=month+"/"+daym+"/"+year
document.dailyinfo.dailycontent.value=dailyinfo[daym]

function moreinfo(){
if (dailyinfolink[daym])
window.location=dailyinfolink[daym]
else
alert("No additional information available for this news piece")
}

//-->
</script>

joh6nn
07-14-2002, 04:49 AM
can you describe your problem in a little more detail? is there a problem actually with the script, for example it's not working, or is there a problem with keen.com, ie, it won't let you take the script out of your page? we might be able to help you with the script not working, but you have to talk to keen if you're having a problem with their service.

tarotcardread4u
07-14-2002, 04:55 AM
joh6nn

The script seems to work okay.It is on the page.I just can't remove it from the page.I have contacted keen to see if it can be removed from the page.Will they be able to remove it.I cant update the home page until the javascript goes.Thanks for the quick reponse.

Can you tell me why javascripts do this too the page?Its as if the javascript is not recognised within the page and wont close the page and update it.

joh6nn
07-14-2002, 05:19 AM
i'm not at all familiar with keen, so i can't tell you why it's happening. it sounds more like a problem with keen, than with javascript. from what you've said, it really has very little, if anything at all, to do with the script.

keen will definitely be able to fix this for you, but when, and how they decided to do it, is pretty much up to them.

sorry that i can't help you more.

tarotcardread4u
07-14-2002, 05:39 AM
joh6nn

Thank you for your reply.I will let you know how it works out and how keen sort it.This will hopefully help others who come onto your site with the same problem.I will be in touch.Thanks for your help.

tarotcardread4u
07-15-2002, 05:43 AM
I finally removed the javascript from my page.Keen could not help me.They advised i get help with html with one of their computer advisers.At the last minute i tried one of my other browsers.Opera 6 i went to home page and deleted the javascript press okay and it went away.I couldn't do that with IE.
Thanks for your help.Bye
:thumbsup:



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum