I am in the process of making an existing website designed in 2005 to be able to work well with wide-screen monitors, tablets and phones. On the existing site, http://pettitslawnscapes.com/html/design___build.html, the menu selection **Design & Build** has six submenus that drop down when your mouse hovers over it. I need to do the same in the new site, http://pettitslawnscapes.com/pettitsnew/design.htm. Any ideas as to how to easily make this happen or a good website that can help me? I will be using the existing graphics for the drop-down menu. Also notice that each menu item changes from normal to bold when …

Member Avatar
Member Avatar
+0 forum 3

Hello. Is there any other way for not using the submit button? <?php $user_choice = $_POST['font_styles']; if ($user_choice == "font_style_1"){ $font = 'firstfont'; }elseif ($user_choice == "font_style_2"){ $font = 'secondfont'; }elseif ($user_choice == "font_style_3"){ $font = 'thiredfont'; }elseif ($user_choice == "font_style_4"){ $font = 'forthfont'; } ?> <html> <head> <style> h1 { font-family = $font; } </style> </head> <body> <form method='post'> <select name="font_styles"> <option value="font_style_1">font_style_1</option> <option value="font_style_2">font_style_2</option> <option value="font_style_3">font_style_3</option> <option value="font_style_4">font_style_4</option> </select> <input type="submit"> </form> <h1>username</h1> </body> </html> I want when a user opens the drop-down menu and chooses an option, the font of the <h1> tag changes and the user …

Member Avatar
Member Avatar
+0 forum 7

Hi. I want to create a drop-down menu for user's location (choosing cities) in the form. I know how to create it, but as I want a long list of citis, so is there any other way to create it? Or do i have to create each city one by one?!

Member Avatar
Member Avatar
+0 forum 1

How can i create a drop-down menu in Tkinter?

Member Avatar
Member Avatar
+0 forum 6

Hi, so im trying to insert data but i get: > Notice: Undefined index: events html part: <form method="post" action="seating.php> <div class="drop"> <label>Event : <label/> <select name="events" id="dd-events" onchange="getguests(this.value)"> <option value="" disabled selected >Event</option> <?php foreach($retrieve as $r): ?> <option value="<?=$r['event_id']?>"><?=$r['event_name']?></option> <?php endforeach ?> </select> </div> <input type="hidden" name="table_name[]" value='+tablename+'><span class="tableName">'+tablename+'</span> <input type="text" name="guestname[]" class="add-name" size="40"> </form> php: <?php if(isset($_SESSION['sess_user_id'])) { if(isset($_POST['save-seating'])) { require "connection.php"; $name = $_POST['guestname']; $table = $_POST['table_name']; $event = $_POST['events'];//<- THIS LINE $sess = $_SESSION['sess_user_id']; $seats = $dbh->prepare("INSERT INTO tables(tuser_id,table_name,event_id,guest_name) VALUES(?,?,?,?)"); for($i = 0; $i < count($_POST['guestname']); $i++) { if(trim($_POST['guestname'][$i]) != '') { $seats->bindParam(1, $sess); $seats->bindParam(2, …

Member Avatar
Member Avatar
+0 forum 2

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <!-- "Simple&Sexy" THEMED BY ITSCHERRYDOLL Do not remove the credit please, thank you :) Enjoy the theme! xo --!> <!-- DEFAULT VARIABLES --> <meta name="image:Sidebar" content=""/> <meta name="image:Background" content=""/> <meta name="color:background" content="#FFFFFF" /> <meta name="color:entry" content="#FFFFFF" /> <meta name="color:sidebar" content="#F7F7F7" /> <meta name="color:entrydate" content="#F7F7F7" /> <meta name="color:text" content="#9C9A96"> <meta name="color:link" content="#9C9A96"> <meta name="color:linkhover" content="#9C9A96"> <meta name="font:body" content="century gothic" /> <meta name="if:show sidebar image" content="0"/> <meta name="if:show entry date" content="1" /> <meta name="if:endless scroll" content="1" /> <meta name="if:show pagination" content="1" /> <meta name="if:shaken image" content="1" /> <meta name="if:faded …

Member Avatar
Member Avatar
+0 forum 1

I have a CSS-styled HTML drop-down menu that I want common across all web pages. Right now, I have the HTML coding in each file, but the CSS link is broken in subdirectories so the stlying does not work. How can I get the CSS to be linked properly and how could I have a master menu so I only have to change things once? Thanks.

Member Avatar
Member Avatar
+0 forum 8

Hi all, I'm new to web development and am experimenting with different things; one of which would be creating a visually appealing "drop-down" menu. I had a simple CSS selector setup before but I opted for a JavaScript solution instead, making the change for the greater flexibility which the approach provided me. I almost have the entire thing down, save for an annoying nuance that seems to crop up for no apparent reason. My plan is to set the height for all <div> elements to 0 except the one being accessed. Then the height for the active <div> element is …

Member Avatar
Member Avatar
+0 forum 2

Hi all, I've just started learning CSS and HTML to develop websites as a hobby. I was experimenting with what I'm learning and have hit a block (excuse the pun). I'm trying to create a drop-down menu using CSS and HTML alone. In the following I try to assign what happens to div with class "dropdown" when a div with class"menu" is hovered over. Maybe I'm just making a newbie mistake, I don't know, but I'd really appreciate any help on this. Thanks! Here's the CSS: [CODE] body { background-image: url(Pattern1.gif); font-size: 12pt; font-family: Caviar Dreams; font-weight: inherit; background-position: left …

Member Avatar
Member Avatar
+0 forum 12

Hey, i have created a drop down menu that give me hell and refuses to work in internet explorer.. Can anyone find the error? (its a wordpress website) [B]Here is the menu itself (as i say.. wordpress):[/B] [CODE] <div class="topmenu"> <ul id="nav"> <li id="home" <?php if(is_page('home')){echo "class=current_page_item";} ?>><a href="/index.php">דף הבית</a></li> <?php wp_list_pages('title_li=&sort_column=menu_order&depth=2'); ?> </ul> </div> [/CODE] [B]Here is the javasccript:[/B][CODE]$(document).ready(function() { $("#nav ul").css({display: "none"}); // Opera Fix $("#nav li").hover(function(){ $(this).find('ul:first').css({visibility: "visible",display: "none"}).show(); },function(){ $(this).find('ul:first').css({visibility: "hidden"}); }); });[/CODE] here is the Css: [CODE]#nav { list-style: none; margin-top: -7px;} #nav li { float: left; line-height: 30px;} #nav li a { color: #FFFFFF; …

Member Avatar
Member Avatar
+0 forum 1

HI! I'm trying to make a form where a dropdown menu is populated from mysql. My code: [CODE=php]<? $link = mysql_connect('localhost', '****', '****'); if (!$link) { die('Could not connect: ' . mysql_error()); } mysql_select_db('****'); mysql_set_charset("utf8"); $query="SELECT distinct first_name FROM names_table"; $result=mysql_query($query); ?> <select name="first_name" onChange=""> <option>Choose!</option> <? while($row=mysql_fetch_array($result)) { ?> <option value=<? echo($row['first_name'])?>><? echo($row['first_name'])?></option> <? } ?> </select> </select><br/>[/CODE] now what i'm trying to do is using the onChange property of select i want to populate a second drop down box (without reloading the page,i heard this is achieved with ajax) depending on the value from the first box now …

Member Avatar
+0 forum 0

Hello! I've made a drop-down menu using the hover sub-class in CSS: [CODE].ddmenu{ display:none; } .box:hover .ddmenu{ padding:0px; display:block; }[/CODE] Is it possible to make the "ddmenu" object appear when the user clicks on the object with the "box" class instead of when he hovers the mouse over it using HTML/CSS? If it's not how do I use Java for it?

Member Avatar
Member Avatar
+0 forum 2

The End.