I've not had any problems with menus in IE. What method are you using to make your drop down menus @BigThinker?
virtual pets forum - Virtual pets news - Gaming discussion - General chat - Art marketplace
I've not had any problems with menus in IE. What method are you using to make your drop down menus @BigThinker?
I decided to keep the tables the way they are..for my own sanity.. lol
@Hituro, here's the section of code from the CSS:
Code:#menu { padding:0; margin:0; float: left; text-align: center; background: #000; width: 900px; } #menu ul { padding:0; margin:0; } #menu li { position: relative; float: left; list-style: none; margin: 0; padding:0; } #menu li a { width:125px; height: 28px; display: block; text-decoration:none; text-align: center; line-height: 28px; background-color: black; color: white; } #menu li a:hover { background-color: red; } #menu ul ul { position: absolute; top: 28px; visibility: hidden; } #menu ul li:hover ul { visibility:visible; }
One of the annoying things about Internet Explorer is that it sometimes forces some elements to keep certain characteristics and doesn't let you change them with the CSS. I'm not sure what you mean when you say that it doesn't work, but my best guess is it has something to do with the drop-down box not opening up. I'm guessing that the "hover" state at the very end doesn't work with the "li". Maybe it will work with the "a" element instead?
My virtual pet site!
http://www.mystikpets.com/
Thanks guys, I'll try that.
I've been coding my gallery. I decided to try something more complicated and have ALL my code on one script rather than several pages. I'm up to 854 lines of code because I have a lot of features and stuff and I have still quite a bit a long way to go. I'm sure it could be a few lines shorter if I knew some shortcuts but alas I don't. It's making me want to redo some old scripts like for messaging and stuff, but we'll see.
I'm STILL coding my gallery feature. :-| I had two days off from work a couple of days ago, but overall, I spent about 30+ hours on this code, and I have about 1400 lines of code. I'm sure it would be much shorter but since I stick to what I know, it is what it is. The sad thing is is that I'm not even done yet. I have a handful of things left to do. Ugh..
Just wondering how much time you spend on coding and how long your codes are..
This can be really frustrating sometimes! My website will not make the release date.. not even close. lol
I'd say my average script is about 500 lines long or so. Such a script usually is a project I have a small and specific purpose for. Not including breaks, I'll work on something like that for about six hours. One of my longer finished scripts was for a breeding game. It ended up being about 1000 lines of code. It was tougher to complete than most. I've found that the coding is the hardest part. Debugging takes time, but it's more satisfying because I get to see my program in action.
The longest script I've written was roughly 1500 lines of code for a battle game.
Your gallery feature might be fun and convenient to use, but by the nature of it being more complex, it will be more difficult to complete. You've got a lot of momentum, though.
My virtual pet site!
http://www.mystikpets.com/
I'm such a stickler for detail so when I'm coding, EVERYTHING has to be exactly the way I want it lol.. I'm a collector so the gallery feature is extremely important to me. The gallery is more along the lines of 10 mini scripts into one if that makes sense so really, I'm getting a lot done, rather than one thing done. :-) So yay!
finally! my gallery is done.. also.. as well as adopting! yay!
Alright, going back, I figured out a way to hide/show text boxes when a selection is made. Success! But that was when there was only one item and no loops.
I need this feature on the move inventory page.
The problem now is that there is no distinction for the javascript commands for each item in the while loop.
Code:<script type=text/javascript> function hide() { document.getElementById('price').style.display="none"; document.getElementById('receiver').style.display="none"; document.getElementById('gallery').style.display="none"; } function showPrice() { document.getElementById('price').style.display="block"; document.getElementById('receiver').style.display="none"; document.getElementById('gallery').style.display="none"; } function showReceiver() { document.getElementById('price').style.display="none"; document.getElementById('receiver').style.display="block"; document.getElementById('gallery').style.display="none"; } function gallery() { document.getElementById('price').style.display="none"; document.getElementById('receiver').style.display="none"; document.getElementById('gallery').style.display="block"; } </script> <?php echo "<form action = 'moveinventory.php' method = 'POST'>"; echo "<table width = '850' border = '1'><tr>"; echo "<tr><td width ='100' align = 'center'>Name</td>"; echo "<td width ='100' align = 'center'>Image</td>"; echo "<td width ='80' align = 'center'>Quantity</td>"; echo "<td width ='80' align = 'center'>Show Rooms</td>"; echo "<td width ='50' align = 'center'>Storage</td>"; echo "<td width ='50' align = 'center'>Donate</td>"; echo "<td width ='50' align = 'center'>Delete</td>"; echo "<td width ='50' align = 'center'>Stock</td>"; echo "<td width ='50' align = 'center'>Send</td></tr>"; while($ids = mysql_fetch_array($idpage)) { $id = $ids['id']; $name = $ids['name']; $url = $ids['url']; $qty = $ids['qty']; $time = $ids['time']; echo "<tr><td align = 'center'><b>$name</b></td>"; echo "<td align = 'center'><img src='$url'></td>"; echo "<td align = 'center'><b><input type = 'text' name = 'quantity[$id]' size = '1'><br>of<br>$qty</b></td>"; echo "<input type = 'hidden' name = 'checked[]' value = '$id' checked = 'yes'>"; $result = mysql_query("SELECT * FROM gallerys WHERE username = '$username' ORDER BY roomname asc") or die(mysql_error()); $count = mysql_num_rows($result); if($count != 0) { echo "<td align = 'center'><input type = 'radio' name = 'action[$id]' value = 'gallery' onclick = gallery()><br><br> <select id = 'gallery' name = 'roomid[$id]'> <option></option>"; } else { echo "<td align = 'center'>No Rooms<br>Available<br>"; } while($room = mysql_fetch_array($result)) { $roomname = $room['roomname']; $roomid = $room['roomid']; echo "<option name = 'roomid[$id]' value='$roomid'>$roomname</option>"; } echo "</select></td> <input type = 'hidden' name = 'roomname' value = '$roomname'>"; echo "<td align = 'center'><input type = 'radio' name = 'action[$id]' value = 'store' onclick = hide()></td>"; echo "<td align = 'center'><input type = 'radio' name = 'action[$id]' value = 'donate' onclick = hide()></td>"; echo "<td align = 'center'><input type = 'radio' name = 'action[$id]' value = 'delete' onclick = hide()></td>"; echo "<td align = 'center'><input type = 'radio' name = 'action[$id]' value = 'shop' onclick = showPrice()> <input type = 'text' id = 'price' name = 'receiverprice[$id]' size = '10' style = 'display:none'></td>"; echo "<td align = 'center'><input type = 'radio' name = 'action[$id]' value = 'send' onclick = showReceiver()> <input type = 'text' id = 'receiver' name = 'receiverprice[$id]' size = '10' style = 'display:none'></td></tr>"; } echo "</table>"; echo "<input type = 'hidden' name = 'set' value = 'true'>"; echo "<br><input type = 'submit' value = 'Move Items!'></form>"; echo "</div></div></div></body></html>"; footer(); ?>
How do I have each javascript thing apply to each item, rather than the whole group of items?
Bookmarks