Gossamer Forum
Home : Products : Links 2.0 : Customization :

Possible My Links Mod

(Page 1 of 2)
> >
Quote Reply
Possible My Links Mod
Hello Everyone,
I was wondering if someone knew how to make a modification to my links that would allow for something similiar to the way MSN does their "Saved Results".
There, when you click on a little disk, instead of going to a confirmation page, there is just an image swap with the disk
to something that says "added".
If you don't know what I'm talking about, take a look http://www.msn.com .

Thanks in advance for anyone willing to help.
-Jon
Quote Reply
Re: Possible My Links Mod In reply to
I have no clue what you are talking about. Be more specific or provide a better URL that illustrates your intention.

Regards,

------------------
Eliot Lee
Anthro TECH,L.L.C
www.anthrotech.com
----------------------


Quote Reply
Re: Possible My Links Mod In reply to
ok, like Eliot said, you should have told us it was in the search results. That gets into javascript and everything so i don't think i would mess with looking at theirs. You can do it but it looks really bunched together and messed up.
They also use style sheets so look in the source for their style sheets.

There are other ways, just go to some of those javascript sites that change fonts, words, and store the cookie after you click something

[This message has been edited by Bmxer (edited December 29, 1999).]
Quote Reply
Re: Possible My Links Mod In reply to
that's javascript..

it's quite simple actually..

it's actually the same exact thing as how the old MyLinks was.. except with the images..

copy the old MyLinks code..

Code:
<script name="javascript">
<!--
loaded = 0

function preload () {
added = new Image;
added.src = "added.gif";
loaded = 1
}

function add (id) {
#original stuff..
document [id].src = eval("added.src");
}
//-->
</script>


<a href="javascript:add(<%ID%> )"><img src="add.gif" name="<%ID%>"></a>

does anyone have my original mylinks code? i don't have it on my hard drive and i don't want to go through that again.. Smile

jerry
Quote Reply
Re: Possible My Links Mod In reply to
I do...I can post it this evening when I get home from work...Yes...It is the original one without the help and test pages I added.

Wink

Regards,

------------------
Eliot Lee
Anthro TECH,L.L.C
www.anthrotech.com
----------------------


Quote Reply
Re: Possible My Links Mod In reply to
the html/javascript one?

the one that i put like:

add 1 delete 1
add 2 delete 2
add 3 delete 3
etc..

delete all

? Smile

that's the one i need.. not the cgi/perl one..

jerry
Quote Reply
Re: Possible My Links Mod In reply to
Yea...I have it...(With some added HTML codes...but the javascript stuff is still in it).

Do you want me to temporarily upload it to my server or should I email it to you? If you want me to email to you, please provide a working email address since the one in these forums I used doesn't seem to work or you are just to busy to answer people's email messages.

Wink

Regards.

------------------
Eliot Lee
Anthro TECH,L.L.C
www.anthrotech.com
----------------------


Quote Reply
Re: Possible My Links Mod In reply to
all i need is the javascript code..

jerry
Quote Reply
Re: Possible My Links Mod In reply to
Here is the Javascript:

Code:
<script language="Javascript">

function add(value) {
var cookie = document.cookie.split('=')[1]
if (cookie) {
var temp = ',' + cookie + ','
if (temp.indexOf(',' + value + ',') == -1) set('cookie', cookie + ',' + value);
}
else { set('cookie', value); }
}

function del(value) {
var x = ',' + value + ','
var temp = ',' + document.cookie.split('=')[1] + ','
if (temp.indexOf(x) != -1) {
var start = ''
var finish = ''
if (temp.indexOf(x) > 0) start = temp.substring(1, temp.indexOf(x));
if (temp.indexOf(x) < temp.length-x.length) finish = temp.substring(temp.indexOf(x)+x.length, temp.length-1);
if (start && finish) start = start + ',';
set('cookie', start + finish);
}
}

function delall() { set('cookie', ''); }

function set(name, value) { if (confirm('Set Cookie? ' + name + '=' + value)) document.cookie = name + '=' + value + ';' }
</script>

Regards,

------------------
Eliot Lee
Anthro TECH,L.L.C
www.anthrotech.com
----------------------


Quote Reply
Re: Possible My Links Mod In reply to
thanks eliot..

geez.. you get out of work late..

jonathan..

i'll post some code that i hope works in a few minutes..

jerry
Quote Reply
Re: Possible My Links Mod In reply to
The problem I see with this enhancement is that on the www.msn.com site, you have to have Explorer 5.0 to use the "Saved Results" function. This is not universal accessible.

But I am sure Widgetz can come up with something that is more effective.

Wink

Regards,

------------------
Eliot Lee
Anthro TECH,L.L.C
www.anthrotech.com
----------------------


Quote Reply
Re: Possible My Links Mod In reply to
geez.. i did it! Smile

well.. it's weird.. but yea! Smile

http://www.pdamania.com/mylinks.html

click on it again to delete it.. also.. if you come in and the link was already added.. it will automatically change it to added..

i haven't tested it on msie..

jerry
Quote Reply
Re: Possible My Links Mod In reply to
ok.. weird.. Smile

i have no clue how to use javascript to get only that cookie.. so.. i'm going to have to look into this a bit more.. but it works unless you've been trying my other cookie things on my site..

jerry
Quote Reply
Re: Possible My Links Mod In reply to
you know eliot.. i haven't even went to MSN yet Smile

can you give me a url where it is so i can see it? i bet they don't use cookies..

jerry
Quote Reply
Re: Possible My Links Mod In reply to
thanks..

problem is i can't figure some things out for the encode.. i've stopped working on it.. firstly i don't know what the equivalent to INT is in javascript.. second.. i don't know the equilvalent to MAP in javascript..

jerry
Quote Reply
Re: Possible My Links Mod In reply to
Thanks for all your help Widgetz and Eliot. I tested it out and it seems like it is working fine, except I don't know how to see a list of all the links I selected. Is this the problem you were having Widgetz?

-Jon
Quote Reply
Re: Possible My Links Mod In reply to
Check this out --->

http://search.msn.com/...s.asp?q=anthropology

Also, Widgetz, the modification you made works fine on MIE 3.02 and 4.0.

Any thoughts about integrating the enhancement into the cgi/perl based Mod you have nicely provided?

Regards.

------------------
Eliot Lee
Anthro TECH,L.L.C
www.anthrotech.com
----------------------


Quote Reply
Re: Possible My Links Mod In reply to
ok.. i think it's totally done.. the best way to test if it saves your cookie is turning the notification on in netscape.. otherwise.. you can reload the page and see if they change from add to added by themselves..

jerry
Quote Reply
Re: Possible My Links Mod In reply to
eck.. just remembered that i made the cgi version with encryption Wink

this version would work on the old version.. however.. i want to make my encryptiong in javascript.. Smile

jerry
Quote Reply
Re: Possible My Links Mod In reply to
This is lookin cool. like the test page.
Quote Reply
Re: Possible My Links Mod In reply to
if you use the old mylinks.cgi. .i think it's at the widgetz.com location somewhere.. you can use this.. however.. they can't have as many links stored..

i was having trouble using my perl encryption code in javascript..

jerry
Quote Reply
Re: Possible My Links Mod In reply to
javascript is easier than i thought.. Wink

but i still don't like it.. :P

jerry
Quote Reply
Re: Possible My Links Mod In reply to
i was just looking at some sites and i found another site with this..

filemine.com

somehow they don't use cookies.. and it is javascript.. their javascript is really simple though.. it just says.. if it's this image.. put change to that image.. otherwise change to this image..

i don't get how they record the data though..they call the url.. /UpdateGPL?####

but i don't see that happening..

jerry

[This message has been edited by widgetz (edited December 30, 1999).]
Quote Reply
Re: Possible My Links Mod In reply to
i shrunk the code down a bit.. used some code that i use in perl Smile

the filemine.com thing wasn't too great actually.. when you came into the site.. if you already added the link.. it won't switch to added by itself.. it would say add.. and if you press it.. it would actually delete it.. and it pretty much puts the thing on reverse..

i need someone to test the new code in msie..

jerry
Quote Reply
Re: Possible My Links Mod In reply to
Nope...it doesn't work in MIE 4.0.

I get the following Error Message:

Quote:
Line: 16
Char: 2
Error: 'undefined' is not an object
Cookie: 0

Regards,

------------------
Eliot Lee
Anthro TECH,L.L.C
www.anthrotech.com
----------------------


> >