Log in

View Full Version : Permanent menu



blastup
11-08-2006, 03:14 AM
I need a script to make like the top header and side menu permanent and that do not reload... .. when you click on the menu at top the page does not reload just the content on the bottom does...I need to install to mysite at blastup.com (http://blastup.com)... Please HELP .. THANX

d-one
11-10-2006, 11:04 AM
You solution could be Ajax, but a simple iframe can also do it.

GITs
11-10-2006, 03:09 PM
or just a frame, if your not too worried about accessability...

BLiZZaRD
11-11-2006, 11:03 AM
ORRR... make a header/footer type thing. Just include header on each page :)

GITs
11-11-2006, 11:33 AM
but that would reload with the page...

BLiZZaRD
11-11-2006, 12:33 PM
Yes, but the content would be the same, and as long as the OP wasn't doing music in that area no one would notice. More accesable than frames, and if its the color/font changes they were refering to, that can be done with CSS as well.

mwinter
11-11-2006, 12:41 PM
I need a script to make like the top header and side menu permanent and that do not reload...

No, you don't.



How do you make that ?

Frames, usually. However, frames bring many usability problems and are rarely justified.



I found a site with this feature on myspacescriptz.com (http://myspacescriptz.com) .. when you click on the menu at top the page does not reload just the content on the bottom does...

Rubbish. It just renders faster than yours, and with very good reason.



I need to install to mysite at blastup.com (http://blastup.com)...

What you need to do is rewrite that site, and avoid using tables to layout the document.

That home page is essentially one giant table. Until the browser has a substantial amount of data, it has no idea how to go about rendering it, so it just waits, and waits, and waits... The other site you mentioned used better (though not perfect) markup, using CSS to style the document. With simpler HTML, the browser can begin rendering incrementally much earlier, hence the perception of a permanent header.

Write valid, semantic markup. As far as I can see, there needn't be a single table element anywhere.

Mike

blastup
11-11-2006, 03:27 PM
that is great info thanx ... im gonna change it all to css

boxxertrumps
11-11-2006, 03:44 PM
wait, why is this in >php ?

if you had a text document with your menu's code in it you could use
<?php
$menu="menu.txt";
echo"$menu" ?>
im not sure if thats correct though... but you could make changes to your menu across the whole site by changing that one file.

blastup
11-11-2006, 07:43 PM
i have another way of doing that....<?php include($DOCUMENT_ROOT . "/header.php"); ?> this will make change to menu across enter site... What i meant is at the top.. Permanent menu no reloading static...i know how to do it now.. just change to css

blastup
11-11-2006, 07:44 PM
could i still do only a little tables... or absolute no tables at all?

boxxertrumps
11-12-2006, 03:42 PM
if you want to use columns and rows, use the css float property.

tables are outdated and many of their atributes are IE specific.
for example...

<table>
<tr><td>cell one</td><td>cell two</td></tr>
<tr><td>cell one B</td><td>cell two B</td></tr>
</table>

displays the same as:

<div><div>
<div style="float:left;width:50%;">cell one</div>
<div style="float:right;width:50%;">cell two</div>
</div>
<div>
<div style="float:left;width:50%;">cell one B</div>
<div style="float:right;width:50%;">cell two B</div>
</div></div>

but the div table is more compatible with browsers.

blastup
11-12-2006, 03:51 PM
thanx yea i was having problem with puting the colums and rows