Jump to content

michaellunsford

Members
  • Posts

    1,023
  • Joined

  • Last visited

About michaellunsford

  • Birthday 03/20/1973

Contact Methods

  • Website URL
    http://www.virtual-showcase.net
  • Yahoo
    xamblu

Profile Information

  • Gender
    Male
  • Location
    Louisiana, USA

michaellunsford's Achievements

Advanced Member

Advanced Member (4/5)

1

Reputation

  1. Have you tried using id's instead of classes on the float divs? Also, the page doesn't fully validate, but IE probably doesn't care.
  2. The popups from the previous post are now working fine in everything including IE7. Problem in IE7, though. When mousing below the second option, the submenu disappears. Running IE7? check this link: http://www.mlmurphydesign.com/menu.php My best guess is the nested <ul> is not being rendered as part of the parent <li> and mousing outside the height of the parent <li> is making the nested <ul> disappear. the magic part of the CSS that makes it all work: ul.menu li:hover > ul { display:block; } Something like this should do the trick -- but I can't figure out how to code it: ul.menu li ul:hover { ul.menu li ul { /* This might explode all the menus, instead of just one, but you get the idea */ display:block; } } the whole story (If you're interested in all of it): <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" > <head> <title>Menu -- all by itself</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <link href="elements/menupopper.css?col=" rel="stylesheet" type="text/css" /> </head> <body style="background:#FFC;"><div style="text-align:center;"><table cellpadding="0" cellspacing="0" style="margin:auto;"><tr><td style="height:5px;"></td></tr> <tr><td> <ul class="menu"> <li><a href="index.html">Home</a> <ul> <li><a href="louisiana.html">Louisiana</a></li> <li><a href="house.html">House</a></li> <li><a href="dujour.html">Du Jour</a></li> </ul></li> </ul></td><td> </td> <td><ul class="menu"> <li><a href="plans.html">Plans</a> <ul> <li><a href="1000-2000.html">1000 - 2000</a></li> <li><a href="2000-3000.html">2000 - 3000</a></li> <li><a href="3000andup.html">3000 - Up</a></li> </ul></li> </ul></td><td> </td> <td><ul class="menu"> <li><a href="gallery.html">Gallery</a> <ul> <li><a href="exterior.html">Exterior</a></li> <li><a href="interior.html">Interior</a></li> <li><a href="detail.html">Detail</a></li> </ul></li> </ul></td><td> </td> <td><ul class="menu"> <li><a href="lagniappe.html">Lagniappe</a> <ul> <li><a href="cottages.html">Cottages</a></li> <li><a href="ancillary.html">Ancillary</a></li> <li><a href="miscellaneous.html">Miscellaneous</a></li> </ul></li> </ul></td><td> </td> <td><ul class="menu"> <li><a href="comingplans.html">Coming Plans</a> <ul> <li><a href="frenchcountry.html">French Country</a></li> <li><a href="creole.html">Creole</a></li> <li><a href="westindies.html">West Indies</a></li> <li><a href="tudor.html">Tudor</a></li> <li><a href="colonial.html">Colonial</a></li> </ul></li> </ul></td><td> </td> </tr></table></div></body></html> /* CSS Document */ ul li ul { margin-left:-2px; margin-top:2px; } ul.menu { width:110px; height:35px; font:13px Arial; position:relative; } ul.menu ul { position:absolute; display:none; } ul.menu li:hover > ul { display:block; } ul.menu li a { text-decoration:none !important; color:#775841; display:block; } ul.menu li:hover, ul.menu li:hover > a, ul.menu li > ul a:hover { color:#FFF !important; background:#000; } ul.menu li { width:105px; position:relative; list-style-type: none; border: 2px solid #775841; background:#FFC; border-width: 1px 2px 1px 2px; padding-top:4px; padding-bottom:2px; text-align:center; } ul,li { padding-left:0; margin-left:0; } ul.menu ul li { color:#775841; background:#775841; } ul.menu ul li a { color:#FFF !important; }
  3. Okay, after testing all of those suggestions  ;) I'm here to report back! At the moment, I'm still struggling to turn off self closing tags. Other than that it seems to be pretty modular and intuitive. I've already disabled that nasty <font> tag, and installed the php script compressor. The rest is pretty routine for my WYSIWYG implementation: adding a PHP image upload feature, making the insert link page a little smarter, and killing that nasty "target" attribute. Good advice, guys. Thanks for the help!
  4. Wow, I don't know if I'll have time to test all these suggestions!  ;D Thanks for the replies -- I've downloaded it and will probably start testing this evening.
  5. Well, you're all fixed up, but now I'm curious about the readfile not working. That @ is supressing the error -- so if you want to know exactly what's happening you'd need to try it without the @. Post back.
  6. Client editable content, whether it's in a forum like this, a web-mail interface, or a CMS. I've tested numerous designMode() editors. These things drive me nuts by creating depreciated <font> tags and countless other things that won't validate or even make sense. I'm guessing the designMode() part means the browser is at least partially to blame for this. Is there a decent editor out there somewhere? What is your experience with the WYSIWYG editor in general?
  7. I didn't think of that he was trying to obfuscate HTML -- but now that I read it a few more times it does sound that way. So, are you trying to obfuscate HTML that is presented to the browser or PHP that remains on the server? Please clarify.
  8. This is all over the PHP manuel page on base64_encode, but the location it was hosted on (through dyndns.org apparently) has mysteriously vanished. The source to that file is attached -- hope it can help. PS> base64_encode manuel page: http://us3.php.net/base64_encode [attachment deleted by admin]
  9. fetch array will grab the same value twice... for example 'price' would come through as 'price' and '0'. You need to specify the second parameter as MYSQL_ASSOC, or use mysql_fetch_assoc.
  10. Yeah, kill all the headers and see what readfile gives you all by it's lonesome.
  11. There may be a way to tweak your database and have it do most of the work for you. If it can be done, it would dramatically reduce the amount of PHP coding you're doing. Unfortunately, it's a stretch of my abilities, but one of the mysql experts here might be able to help. Perhaps post your mysql table structure with the same question under the mysql forum: http://www.phpfreaks.com/forums/index.php/board,3.0.html
  12. It's important to note that the $i++ part is making your array multi-dimensional. That means you can no longer refer to the array without specifying the original result's line number. for example, if you captured $query_data[$i++]=mysql_fetch... then to get the price, you'd have to specify the line number, too: $query_data[12]["price"] -- does that make sense?
  13. okay... try this... remove the last while() line of code, but leave the closing curly bracket. remove the $i++ from the second while line. remove the semi-colon and remove the do statement. I didn't mess with any of your inner variables (like the $query_data["price"] thing) because I really don't know what array that is supposed to be associated with. Once you've got that polished up, holler back. PS> since you're refering to the arrays by their key names (and not their key numbers), I'd encourage you to use mysql_fetch_assoc instead of mysql_fetch_array (which will return both the key name and number -- which can confuse your while loops) here's the completed code:[code]<? $query  = "SELECT * FROM dprices WHERE companyname='$companyname'"; $result = mysql_query ($query); //$query_data = @mysql_fetch_array ($result); while($newresult[$i++]=mysql_fetch_array($result)); $querytemporder    = "SELECT * FROM temporder WHERE companyname = '$companyname'"; $resulttemporder   = mysql_query ($querytemporder); //$query_temporder = @mysql_fetch_array ($resulttemporder); while($newresulttemporder=mysql_fetch_array($resulttemporder)) { if(in_array(current($newresulttemporder),$newresult)) { $price = $query_data["price"]; if($price != 0) { $orderproduct  = $query_temporder["productsku"]; $orderquantity = $query_temporder["value"]; $queryprod     = "SELECT * FROM products WHERE productsku='$orderproduct'"; $resultprod    = mysql_query($queryprod); $query_prod    = @mysql_fetch_array($resultprod); $frequency     = $query_prod["frequency"]; $description   = $query_prod["description"]; $color         = $query_prod["color"]; echo "<tr>\n"; echo "<td width=\"110\" height=\"20\" align=\"center\">$orderproduct</td>\n"; echo "<td width=\"80\" height=\"20\" align=\"center\">$frequency</td>\n"; echo "<td width=\"210\" height=\"20\" align=\"center\">$description</td>\n"; echo "<td width=\"80\" height=\"20\" align=\"center\">$color</td>\n"; echo "<td width=\"110\" height=\"20\" align=\"center\">                 <select name=\"prod_$orderproduct\">                 <option value=\"$orderquantity\">$orderquantity</option>                 <option value=\"select\">SELECT</option>"; for($i=1; $i <= 50; $i++) { $quantity = $query_prod["quantity$i"]; if (($quantity != 0) && ($quantity != $orderquantity)) { echo "<option value=\"$quantity\">$quantity</option>"; } } echo "</select></td>\n"; echo "<td width=\"110\" height=\"20\" align=\"center\">$price</td>\n"; echo "</tr>\n"; echo "<tr>\n"; echo "<td colspan=\"6\" height=\"20\">                 <hr size=\"2\" width=\"680\" color=\"black\" align=\"center\"></td>\n"; echo "</tr>\n"; }     } else { $price = $query_data["price"];         if($price != 0) { $productsku    = $query_data["productsku"]; $orderquantity = $query_temporder["value"]; $queryprod   = "SELECT * FROM products WHERE productsku='$productsku'"; $resultprod  = mysql_query($queryprod); $query_prod  = @mysql_fetch_array($resultprod); $frequency   = $query_prod["frequency"]; $description = $query_prod["description"]; $color       = $query_prod["color"]; echo "<tr>\n"; echo "<td width=\"110\" height=\"20\" align=\"center\">$productsku</td>\n"; echo "<td width=\"80\" height=\"20\" align=\"center\">$frequency</td>\n"; echo "<td width=\"210\" height=\"20\" align=\"center\">$description</td>\n"; echo "<td width=\"80\" height=\"20\" align=\"center\">$color</td>\n"; echo "<td width=\"110\" height=\"20\" align=\"center\">                 <select name=\"prod_$productsku\">                 <option value=\"select\">SELECT</option>"; for($i=1; $i <= 50; $i++) { $quantity = $query_prod["quantity$i"]; if ($quantity != 0) { echo "<option value=\"$quantity\">$quantity</option>"; } } echo "</select></td>\n"; echo "<td width=\"110\" height=\"20\" align=\"center\">$price</td>\n"; echo "</tr>\n"; echo "<tr>\n"; echo "<td colspan=\"6\" height=\"20\">                 <hr size=\"2\" width=\"680\" color=\"black\" align=\"center\"></td>\n"; echo "</tr>\n"; } } } ?>[/code]
  14. This should get all the results and stuff them in a multi-dimensional array. [code=php:0] while($myrow[$i++]=mysql_fetch_array($result)); [/code]
  15. My example doesn't include variable declaration. Did you declare your variables first? [code=php:0]$p=array(1,2,3,4,5); $s=array(1,2,4); do {   if(in_array(current($s),$p)) echo "SELECT";   else echo current($s); }while(next($s)); [/code]
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.