webster2001 Posted April 27, 2008 Share Posted April 27, 2008 How do i make it so that when you hover over a option on the menu it comes up in Bold and in red. I only want this to happen in main menu though not everywhere. Quote Link to comment Share on other sites More sharing options...
Guest Anonymous Posted April 27, 2008 Share Posted April 27, 2008 Re: Main Menu Basic CSS Encapsulate the entire menu in a class, say, "mover" .mover a:hover { font-weight:bold; color: pink; } Quote Link to comment Share on other sites More sharing options...
webster2001 Posted April 27, 2008 Author Share Posted April 27, 2008 Re: Main Menu Basic CSS Encapsulate the entire menu in a class, say, "mover" .mover a:hover { font-weight:bold; color: pink; } How do i do that? Quote Link to comment Share on other sites More sharing options...
Guest Anonymous Posted April 27, 2008 Share Posted April 27, 2008 Re: Main Menu Start here : http://www.w3schools.com/ Quote Link to comment Share on other sites More sharing options...
webster2001 Posted April 27, 2008 Author Share Posted April 27, 2008 Re: Main Menu Start here : http://www.w3schools.com/ What part of it? Quote Link to comment Share on other sites More sharing options...
shedh Posted April 27, 2008 Share Posted April 27, 2008 Re: Main Menu Obviously you start to the beginning and finish at the end....Don't forget about reading the information on HTML, CSS, PHP, MYSQL and then start running a game Quote Link to comment Share on other sites More sharing options...
POG1 Posted April 27, 2008 Share Posted April 27, 2008 Re: Main Menu he wants someone 2 do it for him... Quote Link to comment Share on other sites More sharing options...
dragonboy1 Posted April 28, 2008 Share Posted April 28, 2008 Re: Main Menu Just look at his game no wander he wants some one to do it 4 him :-o Quote Link to comment Share on other sites More sharing options...
Strats Posted April 28, 2008 Share Posted April 28, 2008 Re: Main Menu Bless you lmao Don't worry I'm clueless to :lol: Quote Link to comment Share on other sites More sharing options...
Delete ! Posted April 30, 2008 Share Posted April 30, 2008 Re: Main Menu Lmao everyone had to start from somewere .... and if he dosn't no CSS nows the time to learn it as most of us did :) =D Quote Link to comment Share on other sites More sharing options...
dementor Posted April 30, 2008 Share Posted April 30, 2008 Re: Main Menu is in ya header.php Quote Link to comment Share on other sites More sharing options...
Tezza` Posted April 30, 2008 Share Posted April 30, 2008 Re: Main Menu Just look at his game no wander he wants some one to do it 4 him :-o We all gotta start somewhere. Quote Link to comment Share on other sites More sharing options...
Delete ! Posted April 30, 2008 Share Posted April 30, 2008 Re: Main Menu AAgreed Tezza =D Quote Link to comment Share on other sites More sharing options...
Zero-Affect Posted April 30, 2008 Share Posted April 30, 2008 Re: Main Menu Tezza* Quote Link to comment Share on other sites More sharing options...
nathanmarck Posted May 1, 2008 Share Posted May 1, 2008 Re: Main Menu <?php global $db,$c,$ir, $set; $hc=$set['hospital_count']; $jc=$set['jail_count']; $ec=$ir['new_events']; $mc=$ir['new_mail']; .mover a:hover { font-weight:bold; color: pink; } function mover() { if($ir['hospital']) { print "[url='hospital.php']Hospital ($hc)[/url] ($hc)</a> [url='inventory.php']Inventory[/url] "; } elseif($ir['jail']) { print "[url='jail.php']Jail ($jc)[/url] "; } else { print "[url='index.php']Home[/url] [url='inventory.php']Inventory[/url] "; } if($ec > 0) { print "[url='events.php']Events ($ec)[/url] "; } else { print "[url='events.php']Events (0)[/url] "; } if($mc > 0) { print "[url='mailbox.php']Mailbox ($mc)[/url] "; } else { print "[url='mailbox.php']Mailbox (0)[/url] "; } if($ir['jail'] and !$ir['hospital']) { print "[url='gym.php']Jail Gym[/url] [url='hospital.php']Hospital ($hc)[/url] "; } else if (!$ir['hospital']) { print "[url='explore.php']Explore[/url] [url='Undercon.html']Car Garage[/url] [url='gym.php']Gym[/url] [url='bounty.php']Hitlist[/url] [url='monkeys.php']Monkey Butlers![/url] [url='criminal.php']Crimes[/url] [url='job.php']Your Job[/url] [url='education.php']Local School[/url] [url='hospital.php']Hospital ($hc)[/url] [url='bugtracker.php']Bug tracking[/url] [url='cstaff.php']Contact a member of staff[/url] [url='jail.php']Jail ($jc)[/url] [url='scubadive.php']Go Diving[/url] "; } else { print "[url='jail.php']Jail ($jc)[/url] "; } print "[url='forums.php']Forums[/url] "; if($ir['new_announcements']) { print "[url='announcements.php']Announcements ({$ir['new_announcements']})[/url] "; } else { print "[url='announcements.php']Announcements (0)[/url] "; } print " [url='newspaper.php']Newspaper[/url] [url='advsearch.php']Search[/url] "; if(!$ir['jail'] && $ir['gang']) { print "[url='yourgang.php']Your Gang[/url] "; } if($ir['user_level'] > 1) { print "<hr />[b]Staff Stuff[/b] [url='staff.php']Staff Panel[/url] [url='sqladmin.php']MySQL Control Panel[/url]"; print "<hr />[b]Non-game stuff[/b] [url='youtube.php']Youtube downloader[/url] <hr />[b]Affiliates[/b] [url='http://mccodes.com']MCcodes[/url] "; print "<hr />[b]Staff Online:[/b] "; $q=$db->query("SELECT * FROM users WHERE laston>(unix_timestamp()-15*60) AND user_level>1 ORDER BY userid ASC"); while($r=$db->fetch_row($q)) { $la=time()-$r['laston']; $unit="secs"; if($la >= 60) { $la=(int) ($la/60); $unit="mins"; } if($la >= 60) { $la=(int) ($la/60); $unit="hours"; if($la >= 24) { $la=(int) ($la/24); $unit="days"; } } print "[url='viewuser.php?u={$r[']{$r['username']}[/url] ($la $unit) "; } } if($ir['donatordays']) { print "<hr /> [b]Donators Only[/b] [url='friendslist.php']Friends List[/url] [url='blacklist.php']Black List[/url]"; } print "<hr /> [url='preferences.php']Preferences[/url] [url='preport.php']Player Report[/url] [url='helptutorial.php']Help Tutorial[/url] [url='gamerules.php']Game Rules[/url] [url='viewuser.php?u={$ir[']My Profile[/url] [url='logout.php']Logout[/url] Time is now "; echo date ('F j, Y')." ".date('g:i:s a'); } ?> Something like That Quote Link to comment Share on other sites More sharing options...
Magictallguy Posted May 1, 2008 Share Posted May 1, 2008 Re: Main Menu Um....not quite...It's CSS. You've gotta wrap the CSS it style tags.. <style type="text/css"> .mover .a:hovor { font-weight: bold; color-red; } </style> Or stick it in your header! #mover .a:hovor { font-weight: bold; color-red; } And put a div tag on your mainmenu.. <?php global $stuff.. $mail.. $event.. print "<div id=mover>"; if($ir['hospital'] > 0) And so on. - either works fine! Quote Link to comment Share on other sites More sharing options...
nathanmarck Posted May 2, 2008 Share Posted May 2, 2008 Re: Main Menu Oh ok im a noob at php Quote Link to comment Share on other sites More sharing options...
Guest Anonymous Posted May 2, 2008 Share Posted May 2, 2008 Re: Main Menu print "<div id=mover>"; .... And so on. - either works fine! Hmm... I suggest you read up on CSS selectors MTG. ID's are required to be unique within a page, however classes may be shared. Making basic assumptions here can cause a lot of problems later on down the line. Learn the basic CSS standards (which are of course generally ignored by Internet Explorer - but that's something you will have to live with). Quote Link to comment Share on other sites More sharing options...
Plato Posted May 3, 2008 Share Posted May 3, 2008 Re: Main Menu Start here : http://www.w3schools.com/ What part of it? No offense but if you can't do very basic CSS, theres no way you should be running a game. Also, i've been to the w3schools website, and if you look around it shouldn't be to hard to navigate. I found that it was setup quite nicely, in terms of easily being able to get where you want to go, for the right info... so don't be so quick to demand help, just look at the website, and you'll find it. Good luck with your game. Quote Link to comment Share on other sites More sharing options...
webster2001 Posted May 3, 2008 Author Share Posted May 3, 2008 Re: Main Menu Start here : http://www.w3schools.com/ What part of it? No offense but if you can't do very basic CSS, theres no way you should be running a game. Also, i've been to the w3schools website, and if you look around it shouldn't be to hard to navigate. I found that it was setup quite nicely, in terms of easily being able to get where you want to go, for the right info... so don't be so quick to demand help, just look at the website, and you'll find it. Good luck with your game. Lol i didnt actually go to it.... Quote Link to comment Share on other sites More sharing options...
Tezza` Posted May 3, 2008 Share Posted May 3, 2008 Re: Main Menu if i where you i would down load.... WAMP server... http://www.wampserver.com/en/ and set a game up on localhost i do that and you learn a lot from just messsing about. Quote Link to comment Share on other sites More sharing options...
Magictallguy Posted May 9, 2008 Share Posted May 9, 2008 Re: Main Menu Nyna? One "word" (smily) for ya: :-P Quote Link to comment Share on other sites More sharing options...
POG1 Posted July 17, 2008 Share Posted July 17, 2008 Re: Main Menu if i where you i would down load.... WAMP server... http://www.wampserver.com/en/ and set a game up on localhost i do that and you learn a lot from just messsing about. I did exactly that, also i used php.net as a good resource to see how some things work. I'm on php.net's function list all the time still :P Quote Link to comment Share on other sites More sharing options...
Magictallguy Posted August 9, 2008 Share Posted August 9, 2008 Re: Main Menu I hate IE anyway :P and reading through what you said now makes more sense to me than it did when you first posted it... Thanks again :) print "<div id=mover>"; .... And so on. - either works fine! Hmm... I suggest you read up on CSS selectors MTG. ID's are required to be unique within a page, however classes may be shared. Making basic assumptions here can cause a lot of problems later on down the line. Learn the basic CSS standards (which are of course generally ignored by Internet Explorer - but that's something you will have to live with). Quote Link to comment Share on other sites More sharing options...
POG1 Posted August 9, 2008 Share Posted August 9, 2008 Re: Main Menu the game is in a table? why not give the column a class.. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.