Rick777
03-26-2011, 03:49 AM
This Dyamicdrive Script stopped working in 2009
<!Fav links Script-© Dynamic Drive (www.dynamicdrive.com). For full source code, installation instructions, 100's more DHTML scripts, and Terms Of Use, visit dynamicdrive.com-->
<script language="JavaScript"><!--
var cookiename = 'myfavoritelinks';
var urltable= new Array();
var urlvar= new Array();
function editlinks(name,scrwidth,scrheight){ startDate= new Date(); tWin = window.open(name,
startDate.getTime(),
"toolbar=no,location=no,resizable=no,status=no,scrollbars=yes,menubar=no,width="+ scrwidth + "height=" + scrheight);
}
function link(url,text)
{
this.url=url;
this.text=text;
}
function getcookie (cookiename) {
var cname = cookiename + "=";
var i = 0;
while (i < document.cookie.length) {
var j = i + cname.length;
if (document.cookie.substring(i, j) == cname){
var leng = document.cookie.indexOf (";", j);
if (leng == -1) leng = document.cookie.length;
return unescape(document.cookie.substring(j, leng));
}
i = document.cookie.indexOf(" ", i) + 1;
if (i == 0) break;
}
return "*";
}
function getlinks()
{
vcookie = getcookie(cookiename);
if (vcookie=="*")
{
return false
}
else
{
urlvar = vcookie.split("##");
for (i=0; i < urlvar.length; i++)
{
text = urlvar[i].split("%%");
urltable[i]= new link(text[0], text[1]);
}
return true;
}
}
// --></script>
<script LANGUAGE="JavaScript">
<!--
if (top.location != location) top.location.href = location.href;
// -->
</script>
<center><A NAME="My"><b><i><font color="#FFFFFF"></font></i></b>
<center><b><font face="Arial,Helvetica"><font color="#3333FF"><font size=+1>Your
Favorite Links!</font></font></font></b><a>
<br><b><font face="Arial,Helvetica"><font color="#3333FF"><font size=1>add your
favorite links</font></font></font></b><a></center>
<b><font face="Verdana" color="#000000" size="2">
<br><script language="JavaScript"><!--
getlinks();
for (i=0; i < urltable.length ; i++){
document.writeln('<a href="http://' + urltable[i].url + '" target="_blank">' + urltable[i].text + '</a>');}
// --></script>
</center>
<center><form NAME="Edit" action= "EditMyLinks.html"target="pop" onclick="window.open('','pop','menubar=1,toolbar=1,resizable=1,scrollbars=1,width=470,height=210,left=75,top=80')"><input TYPE="IMAGE" SRC="Image112.gif" BORDER="0" >
</form></b></a></font></a>
</center>
I am using a php script I bought but the same problem, links disapear if your cookies get cleared. We do have plesk on our server, but I am not a programmer. I like the dynamicdrive one you guys used to offer but it no longer works, I would be great if you guys make another one that could be better anchored with not just using cookies, maybe using the pws that get saved function on browsers to? There may be a great solution out there.
Thank you,
Rick
<!Fav links Script-© Dynamic Drive (www.dynamicdrive.com). For full source code, installation instructions, 100's more DHTML scripts, and Terms Of Use, visit dynamicdrive.com-->
<script language="JavaScript"><!--
var cookiename = 'myfavoritelinks';
var urltable= new Array();
var urlvar= new Array();
function editlinks(name,scrwidth,scrheight){ startDate= new Date(); tWin = window.open(name,
startDate.getTime(),
"toolbar=no,location=no,resizable=no,status=no,scrollbars=yes,menubar=no,width="+ scrwidth + "height=" + scrheight);
}
function link(url,text)
{
this.url=url;
this.text=text;
}
function getcookie (cookiename) {
var cname = cookiename + "=";
var i = 0;
while (i < document.cookie.length) {
var j = i + cname.length;
if (document.cookie.substring(i, j) == cname){
var leng = document.cookie.indexOf (";", j);
if (leng == -1) leng = document.cookie.length;
return unescape(document.cookie.substring(j, leng));
}
i = document.cookie.indexOf(" ", i) + 1;
if (i == 0) break;
}
return "*";
}
function getlinks()
{
vcookie = getcookie(cookiename);
if (vcookie=="*")
{
return false
}
else
{
urlvar = vcookie.split("##");
for (i=0; i < urlvar.length; i++)
{
text = urlvar[i].split("%%");
urltable[i]= new link(text[0], text[1]);
}
return true;
}
}
// --></script>
<script LANGUAGE="JavaScript">
<!--
if (top.location != location) top.location.href = location.href;
// -->
</script>
<center><A NAME="My"><b><i><font color="#FFFFFF"></font></i></b>
<center><b><font face="Arial,Helvetica"><font color="#3333FF"><font size=+1>Your
Favorite Links!</font></font></font></b><a>
<br><b><font face="Arial,Helvetica"><font color="#3333FF"><font size=1>add your
favorite links</font></font></font></b><a></center>
<b><font face="Verdana" color="#000000" size="2">
<br><script language="JavaScript"><!--
getlinks();
for (i=0; i < urltable.length ; i++){
document.writeln('<a href="http://' + urltable[i].url + '" target="_blank">' + urltable[i].text + '</a>');}
// --></script>
</center>
<center><form NAME="Edit" action= "EditMyLinks.html"target="pop" onclick="window.open('','pop','menubar=1,toolbar=1,resizable=1,scrollbars=1,width=470,height=210,left=75,top=80')"><input TYPE="IMAGE" SRC="Image112.gif" BORDER="0" >
</form></b></a></font></a>
</center>
I am using a php script I bought but the same problem, links disapear if your cookies get cleared. We do have plesk on our server, but I am not a programmer. I like the dynamicdrive one you guys used to offer but it no longer works, I would be great if you guys make another one that could be better anchored with not just using cookies, maybe using the pws that get saved function on browsers to? There may be a great solution out there.
Thank you,
Rick