IPB

Welcome Guest ( Log In | Register )



Tags
This content has not been tagged yet
 
Reply to this topicStart new topic

Set site as homepage


djleli
no avatar
Newbie [Level 1]
*
Group: Members
Posts: 24
Joined: 9-August 04
Member No.: 753



Post #1 post Aug 9 2004, 09:51 PM
CODE
<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
Go to the top of the page
+Quote Post
Argosoft
no avatar
Member [Level 1]
****
Group: Members
Posts: 54
Joined: 2-August 04
Member No.: 477



Post #2 post Aug 9 2004, 09:57 PM
wow! wink.gif really useful, thanks!
Go to the top of the page
+Quote Post
djleli
no avatar
Newbie [Level 1]
*
Group: Members
Posts: 24
Joined: 9-August 04
Member No.: 753



Post #3 post Aug 9 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 biggrin.gif
Go to the top of the page
+Quote Post
Vacant
no avatar
Advanced Member
*******
Group: Members
Posts: 117
Joined: 4-August 04
From: England, UK
Member No.: 654



Post #4 post Aug 10 2004, 12:07 PM
QUOTE (djleli @ Aug 9 2004, 09:51 PM)
CODE
<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 biggrin.gif
Go to the top of the page
+Quote Post
Spectre
no avatar
Privileged Member
*********
Group: Members
Posts: 873
Joined: 30-July 04
Member No.: 246



Post #5 post Aug 10 2004, 01:09 PM
Only:
CODE
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... smile.gif
Go to the top of the page
+Quote Post
Vacant
no avatar
Advanced Member
*******
Group: Members
Posts: 117
Joined: 4-August 04
From: England, UK
Member No.: 654



Post #6 post Aug 10 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 biggrin.gif

*shuts up*
Go to the top of the page
+Quote Post
triplebtalk
no avatar
Advanced Member
*******
Group: Members
Posts: 120
Joined: 30-December 08
From: Australia
Member No.: 75,132
myCENT:88.23



Post #7 post Jan 3 2009, 06:16 AM
You can also redirect to your homepage from another page with PHP like so:
CODE
<?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:
CODE
<?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.
Go to the top of the page
+Quote Post
rpgsearcherz
no avatar
Privileged Member
*********
Group: [HOSTED]
Posts: 722
Joined: 18-December 07
Member No.: 54,935
Spam Patrol
myCENT:46.71



Post #8 post Jan 3 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?
Go to the top of the page
+Quote Post

Reply to this topicStart new topic

Collapse

> Similar Topics

    Topic Title Replies Topic Starter Views Last Action
No new   31 ravi 2,909 Yesterday, 11:54 AM
Last post by: contactskn
No new   24 football123213 1,686 3rd January 2009 - 06:07 AM
Last post by: triplebtalk
No new   110 Assassin 5,176 1st December 2008 - 06:56 AM
Last post by: contactskn
No New Posts 4 A200 269 12th December 2008 - 04:32 AM
Last post by: iG-yogasagar
No New Posts   6 KooL 535 21st September 2004 - 11:13 PM
Last post by: odomike
No New Posts   1 yomi 364 15th August 2004 - 10:01 PM
Last post by: football123213
No New Posts   6 MSTR 834 16th August 2004 - 12:13 PM
Last post by: psp-playstation
No New Posts 5 psp-playstation 717 4th August 2004 - 08:17 AM
Last post by: enforcer
No New Posts   9 cwalden 711 30th December 2008 - 05:03 PM
Last post by: rpgsearcherz
No new   22 CodeName_88 1,809 9th August 2004 - 08:32 PM
Last post by: CodeName_88
No New Posts   11 Angelexi 1,373 21st December 2008 - 03:30 AM
Last post by: africa
No New Posts   12 Evil Guy 1,316 18th December 2007 - 04:52 PM
Last post by: midnightvamp
No New Posts 11 EricDrinkard 2,192 21st November 2004 - 04:34 PM
Last post by: habbohotel
No New Posts   2 rvovk 642 3rd January 2009 - 06:20 AM
Last post by: triplebtalk
No new
my site  * 12
15 dontmaimyourself 1,146 20th October 2004 - 04:26 PM
Last post by: dontmaimyourself


 



RSS Open Discussion Time is now: 8th January 2009 - 09:44 AM