PDA

View Full Version : I need this :-)



Craig
March 2nd, 2006, 12:48
Hey

Does anyone have any idea where I can get that script that lists your sites in a bar at the top of a page, ie hostscripts.com (look at the top bar).

Cheers

stuffradio
March 2nd, 2006, 13:02
I don't get what you mean... do you mean the title bar? Or explain it differently please

themoose
March 2nd, 2006, 13:04
I understand. Its easy - just create the html like this:

<html>
<body>
your html
</body>
</html>

and stick it at the top of every page in your site.

Craig
March 2nd, 2006, 13:11
I understand. Its easy - just create the html like this:

<html>
<body>
your html
</body>
</html>

and stick it at the top of every page in your site.

LOL, you dont get me lol, sorry. ok, if you go to hotscripts.com & look at the top, it has a iNet bar & you can select which one of there sites you want to visit in a dropdown menu.

Bruce
March 2nd, 2006, 14:00
That's just some basic javascript.

Try this: http://javascript.internet.com/generators/drop-down-menu.html

DarkBlood
March 2nd, 2006, 14:13
But did the user ask for a drop-down or just a bar?


<?php

require("mysql_connect.php");

sites = new Array();

$sites[] = mysql_query('SELECT sites FROM sites_table');

function dropthem($sites) {
global $sites;

while($sites =< this_num) {
print('<table width="95%" align="center" height="32"><tr><td>'. $sites .'</td></tr></table>');
}
}

?>

....

DarkBlood
March 2nd, 2006, 14:28
Oh, right. I forgot that part...


<?php

require("mysql_connect.php");

sites = new Array();

$sites[] = mysql_query('SELECT sites FROM sites_table');

function dropthem($sites) {
global $sites;

print('<table width="95%" align="center" height="32"><tr><td><form name="jump"><select name="menu" onChange="location=document.jump.menu.options[document.jump.menu.selectedIndex].value;" value="GO">');

while($sites =< this_num) {
print('<option value="'. $sites["URI"] .'">'. $sites["name"] .'</option>');
}

print('</select></form></td></tr></table>');
}

There you go...

themoose
March 2nd, 2006, 15:01
making it a database is a bit pointless. Just use an array.

stuffradio
March 2nd, 2006, 15:55
You could also just write it to file and read it from the file...

Tree
March 2nd, 2006, 16:47
Something like this?

http://www.ncisolutions.com/projects/bar/local_example.html

Sorry, hostscripts.com won't load up for me, so I have no idea if this is what you're talking about.

Bruce
March 2nd, 2006, 16:51
Something like this?

http://www.ncisolutions.com/projects/bar/local_example.html

Sorry, hostscripts.com won't load up for me, so I have no idea if this is what you're talking about.
It's just a simple dropdown menu like the forum jump at the bottom of the pages on the forum.

Johnson
March 2nd, 2006, 16:59
Craig, you talking about something like I have at www.counter.johnsoninteractive.com?

Craig
March 2nd, 2006, 17:09
Craig, you talking about something like I have at www.counter.johnsoninteractive.com? (http://www.counter.johnsoninteractive.com?)

Now thats what I need, how did you get the script. Spill the beans.

Tree
March 2nd, 2006, 17:11
I'm thinking this is the code:


<BODY BGCOLOR=#FFFFFF LEFTMARGIN=0 TOPMARGIN=0 MARGINWIDTH=0 MARGINHEIGHT=0>
<TABLE WIDTH=100% BORDER=0 CELLPADDING=0 CELLSPACING=0 height="42">
<TR>
<TD bgcolor="#596D95" width="490" rowspan="2">
<a href="../../">
<font face="Arial">
<IMG SRC="../../images/networkbar_01.gif" ALT="Johnson Interactive Main Site" border="0"></font></a></TD>

<TD bgcolor="#596D95" width="430">
&nbsp;</TD>
</TR>
<tr>
<TD bgcolor="#596D95" width="430">
<p align="right"><font size="2" face="Arial"><b><font color="#FFFFFF">Select
a JI Website:</font> </b></font><select class="combobox" name="SiteMap" onchange="if(options[selectedIndex].value){location = options[selectedIndex].value}" size="1">
<option selected>- - - - - - -Network- - - - - - -</option><option value="http://theargsite.com">The ARG Site</option>

<option value="http://counter.johnsoninteractive.com">JI's Free Website Counters</option>

<option value="http://legalforms.johnsoninteractive.com">JI's
Free Legal Forms</option>


<option value="http://johnsoninteractive.com">Johnson
Interactive Main</option>
</select></p>
</TD>
</tr>
</TABLE>
<font face="Arial">

<br>
</font>
</body>

sep
March 3rd, 2006, 06:01
This awkwardly feels like the time I was asking Craig which domain service he uses (namecheap) and he wasn't telling me.

Craig
March 3rd, 2006, 08:57
This awkwardly feels like the time I was asking Craig which domain service he uses (namecheap) and he wasn't telling me.

For the last time, we dont use namecheap, we only used namecheap for our domain. Pay me $20 & I will tell you where to get .coms for $1.99 for life :eek2: :P.

Johnson
March 3rd, 2006, 11:10
Now thats what I need, how did you get the script. Spill the beans.

I made it myself.

EDIT: I'll sell you it for $2.00 :):):):):):):)