FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


Need a script - navigation





snowboardalliance
I'm working on a navagation layout and wanted to do it in php. I want it so I can have a list of links and then it will generate the html from a template. The links look like this: http://snowboardalliance.frihost.net/test/Test.html

I will make a list of links in a database with the Title, url, and "level" (like the different indents). The problem is, I want the folder images how they are, which means the script would have to detect which image to use.

Any suggestions/scripts welcome.
mathiaus
well you have sub cats right so you could either say if this main cat has any subs (or if any subs have catid of ths main cat) then show folder image A otherwise image B

or....

make another column called open or something (1=open 0=closed) then in your script another if
Code:
if ($open==1) {
$imageurl = "openfolder.gif";
} else {
$imageurl = "closedfolder.gif";
}
Related topics
Navigation Script (javascript) Help Please!
Site Nav Suggestions...
navigation bars
java script help please!!!
Groupon Script with Added Features
Need the Code script for this website navigation
Which is your favourite weblog Script?
Chat script
Script Upload (obiefileman)
script backup database
Script run background
Can someone make me a php script?
PHP Toturail
target = _parent redirect script?
This topic is locked: you cannot edit posts or make replies.    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.