Jump to content



Welcome to KnowledgeSutra - Dear Guest , Please Register here to get Your own website. - Ask a Question / Express Opinion / Reply w/o Sign-Up!
- - - - -

Set site as homepage


10 replies to this topic

#1 djleli

    Newbie [Level 1]

  • Kontributors
  • Pip
  • 24 posts

Posted 09 August 2004 - 09:51 PM

<a href="#" onclick="this.style.behavior='url(#default#homepage)';this.setHomePage('PUT YOUR URL HERE');"><font color=navy face=verdana size=2><b>Click here to set this as your home page</b></font></a>

Under "PUT YOUR URL HERE" you insert something like trap17.com or something

#2 Argosoft

    Member [Level 1]

  • Kontributors
  • PipPipPipPip
  • 54 posts
  • Interests:programming... Muse... Nutella... Do you know what Nutella is, don't you?? yes? you are ok. No? your life must be a hell!!!!

Posted 09 August 2004 - 09:57 PM

wow! :lol: really useful, thanks!

#3 djleli

    Newbie [Level 1]

  • Kontributors
  • Pip
  • 24 posts

Posted 09 August 2004 - 10:04 PM

no worries mate if you need any help just drop a line anytime you want ive got some experience now on html and that kinda of stuff :lol:

#4 Vacant

    Advanced Member

  • Kontributors
  • PipPipPipPipPipPipPip
  • 117 posts
  • Location:England, UK

Posted 10 August 2004 - 12:07 PM

djleli, on Aug 9 2004, 09:51 PM, said:

<a href="#" onclick="this.style.behavior='url(#default#homepage)';this.setHomePage('PUT YOUR URL HERE');"><font color=navy face=verdana size=2><b>Click here to set this as your home page</b></font></a>
Technically thats JavaScript, not HTML, even if it doesnt say <script> anywhere. Just though i'd point that out... Cool though, I'll be using it :lol:

#5 Spectre

    Privileged Member

  • Kontributors
  • PipPipPipPipPipPipPipPipPip
  • 873 posts

Posted 10 August 2004 - 01:09 PM

Only:
this.style.behavior='url(#default#homepage)';this.setHomePage('PUT YOUR URL HERE');
Is JavaScript; the rest is HTML. Just thought I'd point that out... :P

#6 Vacant

    Advanced Member

  • Kontributors
  • PipPipPipPipPipPipPip
  • 117 posts
  • Location:England, UK

Posted 10 August 2004 - 02:20 PM

You know what I meant. It USES Javascript. hmmm...maybe i should just keep my supposedly clever comments to myself in future :P

*shuts up*

#7 triplebtalk

    Super Member

  • Kontributors
  • PipPipPipPipPipPipPipPipPip
  • 210 posts
  • Gender:Male
  • Location:Australia
  • Interests:Forums, Blogs, Web Design, Graphic Design, Radio
  • myCENT:0.76

Posted 03 January 2009 - 06:16 AM

You can also redirect to your homepage from another page with PHP like so:
<?php
header( 'Location: [url="http://www.yoursite.com/new_page.html'"]http://www.yoursite.com/new_page.html'[/url] );
?>
Make sure you put it above the HTML code like so:
<?php
header( 'Location: [url="http://www.anysite.com/new_page'"]http://www.anysite.com/new_page'[/url] );
?>
<html>
<head>
<title>Redirecting Now...</title>
<style type="text/css">
body
{
background: #000000;
}
p, h1, h2, h3, h4, h5, h
{
color: #CCCCCC;
}
</style>
</head>

<body>
<h1>Redirectiom Page</h1>
<p>Redirecting Now...</p>
</body>
<html>

Notice from rvalkass:

Code tags are needed around all code.


#8 rpgsearcherz

    Trap Double Mocha Member

  • Kontributors
  • PipPipPipPipPipPipPipPipPipPipPipPipPipPipPip
  • 2,025 posts
  • Gender:Male
  • Interests:Working on my Rift fansite
  • myCENT:56.86
  • Spam Patrol

Posted 03 January 2009 - 06:20 AM

Those are some pretty cool codes.

But...For the one that adds to favorites, that means you could use it to add a *different* site to favorites too, right?

Like a blind one I mean...Be on Trap17 but have it add something like www.rofl.com to the favorites instead?

#9 anheizhiye

    Advanced Member

  • Kontributors
  • PipPipPipPipPipPipPip
  • 126 posts

Posted 17 January 2009 - 03:12 PM

thank you for this code!
i could use it in my website soonly !
you are avery kind

#10 stopthewarm

    Member [Level 2]

  • Kontributors
  • PipPipPipPipPip
  • 86 posts

Posted 06 February 2009 - 10:35 AM

Well thanks alot for the tip. What i used to do is when i wanted people to make my page as their homepage is write:
To make my website your homepage click ctrl:d or firefox users please go to internet options and set this as your homepage

Well now i have better options..surely :D




Reply to this topic


This post will need approval from a moderator before this post is shown.

  


1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users