HomePage Hyperlink

  • Smart_Phil_Dude
  • Novice
  • Novice
  • Smart_Phil_Dude
  • Posts: 23

Post 3+ Months Ago

How do i create a hyperlink to make my site the visitors' homepage?
  • DR01D
  • Expert
  • Expert
  • User avatar
  • Posts: 661
  • Loc: Australia

Post 3+ Months Ago

found this at dynamicdrive, there are plenty others around too.
this one is ie5 and up.

Simply add the below code to the <body> section of your page:

Code: [ Select ]
<!----Set site as homepage script----------

By Ryan Gravener (ryangravener@hotmail.com)
Permission granted to Dynamicdrive.com
to include script in it's archive
For full source code, installation instructions,
100's more DHTML scripts, visit http://dynamicdrive.com

------------------------------------------->

<a class="chlnk" style="cursor:hand" HREF onClick="this.style.behavior='url(#default#homepage)';this.setHomePage('http://dynamicdrive.com');">Click here to make Dynamic Drive your default homepage</a>
  1. <!----Set site as homepage script----------
  2. By Ryan Gravener (ryangravener@hotmail.com)
  3. Permission granted to Dynamicdrive.com
  4. to include script in it's archive
  5. For full source code, installation instructions,
  6. 100's more DHTML scripts, visit http://dynamicdrive.com
  7. ------------------------------------------->
  8. <a class="chlnk" style="cursor:hand" HREF onClick="this.style.behavior='url(#default#homepage)';this.setHomePage('http://dynamicdrive.com');">Click here to make Dynamic Drive your default homepage</a>


//Droid - please use the bbCode buttons when posting code -- otherwise it probably won't display correctly. I fixed this one for you -- ATNO
  • Smart_Phil_Dude
  • Novice
  • Novice
  • Smart_Phil_Dude
  • Posts: 23

Post 3+ Months Ago

Thank dude!!! you're the best in the world!!! thanx for fixing it for me; i wouldn't have thought of how to fix it :oops:
  • SharkShark
  • Guru
  • Guru
  • User avatar
  • Posts: 1013
  • Loc: Living In Today

Post 3+ Months Ago

I learned alot of scripting and codes on Dynamic Drive. They have most codes already written out for you, an excellent tool for the learner!
  • DR01D
  • Expert
  • Expert
  • User avatar
  • Posts: 661
  • Loc: Australia

Post 3+ Months Ago

no probs, i usually check there if i need any little scripts. theres heaps of other scripts sites around aswell, just have to do a quick search in google ;-)
  • gonetwork
  • Novice
  • Novice
  • User avatar
  • Posts: 24
  • Loc: Australia

Post 3+ Months Ago

does anyone have the code so they don't have to click the llink, it just sets to the homepage automatically? - i know it can be done as my homepage always gets changed without me doing it :)..

Thanks All
  • SharkShark
  • Guru
  • Guru
  • User avatar
  • Posts: 1013
  • Loc: Living In Today

Post 3+ Months Ago

Dont even try it. Nobody likes having thier homepage changed without thier permission. Thats spyware/adware stuff. No one will help you with that here.
  • UNFLUX
  • Genius
  • Genius
  • User avatar
  • Posts: 6376
  • Loc: twitter.com/unflux

Post 3+ Months Ago

agreed - that's really bad stuff there, and I despise it :twisted:

You'd be better off letting them decide for themselves that they
want your site for their homepage. I know for every site that did
that to me, I never ever returned.

Not the reputation I'd want for my site...
  • smith_zach89
  • Student
  • Student
  • smith_zach89
  • Posts: 71
  • Loc: Germany

Post 3+ Months Ago

If your site is of a high enough quality, and good enough to keep visitors coming/returning, then you shouldn't have to worry about forcing them to visit your site.

When my settings get changed, such as home pages, I get the impression that the site is doing so poorly, visitors aren't coming on their own free will, so they need to force people. Not a site I want to be a part of. And it just pisses me off.
  • rtm223
  • Mastermind
  • Mastermind
  • User avatar
  • Posts: 1855
  • Loc: Uk

Post 3+ Months Ago

UNFLUX wrote:
I know for every site that did
that to me, I never ever returned.
Not the reputation I'd want for my site...


Very true. If you are planning on doning that then why not open a dialog asking (repeatedly) if the user wants to download and install some useless toolbar, and also popup 15 windows advertising "milfseeker" and "old saggy women get dirty". I would put these things on a par with the auto homepage thing.

BTW The code is actually there in droids post :roll:
  • orenjikuro
  • Born
  • Born
  • orenjikuro
  • Posts: 1

Post 3+ Months Ago

Actually my default homepage was changed without my permission, so i changed the default homepage to the page i wan. But when i reboot my computer, it changes again. Anyone has any idea how do i revert tis? :(
  • SharkShark
  • Guru
  • Guru
  • User avatar
  • Posts: 1013
  • Loc: Living In Today

Post 3+ Months Ago

Sounds like you picked up some spyware/Adware while you were surfing. The way to fix it is to delete the malicious registry keys.

Use Adaware: http://www.lavasoftusa.com/software/adaware/

It does an excellent job of scanning for and finding not only infected cookies and/or programs, but it locates the registry codes as well. I have been using them for a while now and I am quite pleased with it. Choose Adaware SE Personal, as it is free.

Also, it doesn't work every time, but it may help prevent this from happening again. Go to your Tools > Internet Options, then choose the advanced tab. Make sure under browsing that install on demand is deslected, this prevents IE from automatically installing a program just because a webpage tells it to.
  • neksus
  • Mastermind
  • Mastermind
  • User avatar
  • Posts: 2194
  • Loc: Canada

Post 3+ Months Ago

http://www.planetsourcecode.com

Post Information

  • Total Posts in this topic: 13 posts
  • Users browsing this forum: No registered users and 41 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.