EliteGhost
08-02-2008, 06:49 PM
Hey, im using a php, and basic html to code my pages, i basically have my php function returning what links go in this part of my webpage,
i would like to scroll over the story link, and have 3 links pop in kinda indented
so on the page it would look like this when the mouse clicks on Story
StoryLink 1
Link 2
Link 3Screen Shots
They would be hidden until clicked, and go away when clicked again, or mouse out.
a short portion of my code looks like this
function PF_sc2links(){
global $context, $maindir, $home;
echo' <td background="/starcraft/images/left2.gif"><div align="left">
<span class="LINKS">
· <a href="'.$home.'sc2/news">News<br /> </a>
· <a href="'.$maindir.'/forum/index.php?board=27.0">Q & A <br /> </a>
· <a href="'.$home.'sc2/story">Story <br /> </a>
// CONDITIONAL GOES HERE WITH 3 LINKS?
· <a href="'.$home.'sc2/screen">Screen Shots<br /> </a>';
and it keeps going with more links, and an if statement if the user is logged in they can view links hidden to the non logged in.
all i want to know is how would i make an IF statement to say, If mouseover story=true than show 3 links indented.
i would like to scroll over the story link, and have 3 links pop in kinda indented
so on the page it would look like this when the mouse clicks on Story
StoryLink 1
Link 2
Link 3Screen Shots
They would be hidden until clicked, and go away when clicked again, or mouse out.
a short portion of my code looks like this
function PF_sc2links(){
global $context, $maindir, $home;
echo' <td background="/starcraft/images/left2.gif"><div align="left">
<span class="LINKS">
· <a href="'.$home.'sc2/news">News<br /> </a>
· <a href="'.$maindir.'/forum/index.php?board=27.0">Q & A <br /> </a>
· <a href="'.$home.'sc2/story">Story <br /> </a>
// CONDITIONAL GOES HERE WITH 3 LINKS?
· <a href="'.$home.'sc2/screen">Screen Shots<br /> </a>';
and it keeps going with more links, and an if statement if the user is logged in they can view links hidden to the non logged in.
all i want to know is how would i make an IF statement to say, If mouseover story=true than show 3 links indented.