Jump to content

Zane

Administrators
  • Posts

    4,362
  • Joined

  • Last visited

  • Days Won

    11

Everything posted by Zane

  1. Just change the variable name to $value. It will overwrite the current value in the loop. $value = html_entity_decode($value);
  2. Now that's what I'm talkin' bout. You da CSS masta. It might a day or so before I implement this... you mind leavin your example up for me. Well, I guess I could just copy it real quick.
  3. yep, that's exactly the effect I was aiming for... a tooltip. I looked for a few examples to pilfer from, but most all of them use javascript (jquery). I already have enough javascript going on anyway so I'm trying to avoid adding more. Yeah sure, any kind of suggestions you might have.. just lemme know. Though this seems to work as it is now. There's so many columns and data in those tables that I can't figure out how to sustain any free whitespace. 'preciate it cssfreakie.
  4. nice.. I like it. Not sure if I want to go away from tables or not, although it would be easier to sort using your way. It seems, from your example, that I could mimick this just by adding a margin or bottom padding to the TRs. I'll keep the non-table idea in mind, but I've already coded it tabularly, I think I'll just add a margin (or bottom padding) and go with that. My problem isn't so much the TRs 'popping out' as it was getting the image to center just right, without resizing the entire TR. EDIT: nope, bottom padding did nothing, but honestly I think this will work. I'm sure at some point though I might have to implement the UL method.
  5. Wow, I think I may have fixed it now.. I just needed a break. I changed my code to this... just to avoid explanation. table.excel td.img { width: 80px; background-color:#CF9557; } table.excel td.img img { position:absolute; display:none; } table.excel tr:hover td.img{ cursor:pointer; } table.excel tr:hover img { display:block; border: 1px solid black; } table.excel tr:hover { cursor:pointer; border: 1px solid black; } table.excel td { text-align:left; vertical-align:top; padding:3px; } This isn't exactly the "coolest" method I've tried to get working, but it works.... if you have any suggestions for a different approach, feel free to let me know.
  6. Thanks cssfreakie. I changed the font-size for the TR hover, but the "flickering" continues... if you know what I mean. i.e I can't move down the list one at a time, although I can move the mouse up the list just fine. If only I could maintain the same height for the TR and have the image just overlap the cell below it, it would be perfect.
  7. I'm trying to make an image appear above a tr when it is hovered over. http://reallycheapfloors.com As you can see from the above link, if you hover over a TR, the image appears, BUT it also resizes the entire tr... making this annoying flicker effect. My goal is to have the image appear ... somewhat absolutely in which it stays in place and the TR doesn't resize it self. Currently I'm using this code to make it do this. table.excel td.img { width: 10px; background-color:#CF9557; position:relative; } table.excel td.img img { display:none; } table.excel tr:hover td.img{ width: auto; cursor:pointer; padding: 3px; font-size:largest; border: 1px solid black; background-color:white; } table.excel tr:hover img { display:block; } table.excel tr:hover { font-size: 14px; cursor:pointer; border: 1px solid black; } I'm most likely going about this the wrong way, but it feels like I'm so close. Whenever I set table.excel tr:hover img to contain position:absolute the image gets off centered from it's TD and if I use top, right, etc to position it, it moves relative to the page instead of the TD. What am I doing wrong?
  8. gee thanks guys. I think I'll have a beer now.
  9. glob does exactly this.
  10. If you intend on keeping this information handy then there's no harm in using sessions.. because that's the whole purpose of the superglobal. To store data within the users browser session.
  11. just put an IF statement in your FOREACH and use continue to skip it. foreach($status as $propertyKey=>$ratio) { if($propertyKey == 22 OR $propertyKey == 10 OR $propertyKey == 6) continue; }
  12. If you're talking about the tabs at the bottom, it's because you're margin-top is too low.. change it to 400px. .product_tab_wrapper{ width: 700px; clear: both; margin-top: 400px; margin-left: 15px; }
  13. This topic has been moved to CSS Help. http://www.phpfreaks.com/forums/index.php?topic=333585.0
  14. I guess you're just banned for life now, unless of course you decide to keep only your first account. Oh noes.
  15. hahaha... I'd like to thank all the little people and such.
  16. Yeah, you totally didn't read the rules at all.
  17. dcro2 is right, the only way to mimic this would be in Javascript and I have to say, I don't understand why you would want such a feature. It's as if you're making a phishing scam for the visually impaired.... or the visually careless and ignorant. Who in their right mind would type /php manual/ ...., see "What is bob thinking of" and hit Enter or click Search? This sounds like a way to prey on someone's ignorance IMO.
  18. Keeping it open will not do any good. The only way it would do any good is if you refreshed the page every minute.. on the minute. Which you can easily script it to do, but it would probably slow your server down quite a bit... possibly to where you need to restart apache.
  19. Only reason I can think it would do that is if the page this ran on was not a php file.
  20. Well then $user must not have the value you think it does To find out you can either run this query SELECT users.id FROM users WHERE users.username = '$user' Or echo out the $user variable and see for yourself.
  21. This topic has been moved to PHP Regex. http://www.phpfreaks.com/forums/index.php?topic=333172.0
  22. if(preg_match("~(oh|el|[0-9]*)~"), $password) /// password is bad
  23. What does this pull up? SELECT users.id FROM users JOIN active_users_dyn as dyn ON users.id = dyn.userRef WHERE users.username = '$user'
  24. Yes, but that method will only work if your page is visited everyday... and especially at midnight.
  25. SELECT users.id FROM users JOIN active_users_dyn as dyn ON users.id = dyn.userRef WHERE users.username = '$user' AND users.isRegistered = 1
×
×
  • 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.