Click to See Complete Forum and Search --> : "Make this your hoome page" - JavaScript


ukbroad
12-29-2003, 12:34 PM
I am trying to find a JavaScript (or HTML) to enable my viewers to make my home page theirs. I have seen a JavaScript for this, but somehow cannot now find it. Can anyone help, please?

stoodder
12-29-2003, 01:40 PM
<a style="cursor:hand" href onClick="this.style.behavior='url(#default#homepage)';this.setHomePage('Your Site Here');">
Click Here To Make This Site Your Homepage</a>

ukbroad
12-30-2003, 03:13 PM
I have tried to enter the script you sent to me, but I must be doing something wrong, it won't work. I am really new at this; my partner and I have made our own websites for our previous company, but this new one is proving to be extra hard work. Do you think you could help me/us out? BTW what does a spot on the envelope mean?

fredmv
12-30-2003, 03:14 PM
I corrected a slight syntax error, try this:<a href="#" onClick="style.behavior='url(#default#homepage)';setHomePage('Your Site Here');">Click Here To Make This Site Your Homepage</a>Just make sure it's all on one line.

ukbroad
01-05-2004, 07:03 PM
fredmv,
thanks so much for your post, but I am afraid it did not work. I really do not know why it won't work. Could you look at the site www.themooreexchange.com and see if you can glean any idea on what the problem may be? Would be very grateful! Tx, Lynn
:confused:

fredmv
01-05-2004, 07:06 PM
From your source:onClick="style. behavior='url(#default#homepage)';Remove the space and it should work correctly.

pyro
01-05-2004, 07:08 PM
Originally posted by fredmv
Remove the space...Don't you just love how these forums format your posts, sometimes?

fredmv
01-05-2004, 07:12 PM
Originally posted by pyro
Don't you just love how these forums format your posts, sometimes?Seriously, I know... I've also seen instances where random newlines have been added. :confused: