CTK501
Members
-
Joined
-
Last visited
Reputation Activity
-
CTK501 got a reaction from Kaskhautual in Dependable DropdownHi folks, i hope i am posting in the correct place and i really hope someone can give me a bit of assistance. I'm trying to build a little search box for a car site. My database table is quite simple "make","model","price"
So basically i want drop down one pre-propogated with all makes then on select drop 2 will show the model.
Drop 3 & 4 will be optional filters of Min Price & Maximum Price .. So i have found some good information and examples on around and i have drop downs 1&2 working 99% perfectly.
My only problem is that drop down 2 is invisible until a selection has been made in drop down 1. Can anybody help me to make it visible at all times (just for styling purpose) obviously it will be disabled until previous selection has been made.
Also i'm not really sure how to achieve drops 3&4 ... i have put in all the price ranges, but i don't know how to make it function to compare the Price column from my database.
Any help would be great .. my code so far is attached, as the forum is detecting links which aren't actually there, not sure what is going on i even deleted links to include and call scripts .. but not to worry.
search.php.txt
func.php.txt
-
CTK501 reacted to andy9l in Explode & Limit<?php
$parts = explode(',', $row["imagerefs"]);
unset($parts[0]); // Add this line
$numImg = 0;
foreach($parts as $part) :
if (++$numImg > 4) break;
?>
<li>
<a class="thumb" name="leaf" href="<?php echo $part; ?>" title="<?php echo $row["make"]; ?>">
<img src="<?php echo $part; ?>" alt="<?php echo $row["make"]; ?>" style="width:146px; height:88px;"/></a>
</li>
<?php endforeach ?>
-
CTK501 reacted to Tieskevo in Replace Text Character with Imagemaybe you could just edit a font and then use a font-face on the element that contains the counter?
-
CTK501 got a reaction from GregF in Font CompatibilityOne of the more experienced members here may be able to answer this better, but i'll give it a go for you.
Web Safe Fonts used to be a much bigger problem than it is now. In previous years, the use of Web Safe Fonts ensured you were using a font that was guaranteed to be compatible in all browsers etc. It is still common practice to use a family of fonts to fall back on like so {font-family:"Times New Roman", Times, serif} however the use of Google Web Fonts ensures compatibility across modern browsers, without requiring the user to have the font previously installed on their system.
Google Web Fonts currently supports
Google Chrome: version 4.249.4+ Mozilla Firefox: version: 3.5+ Apple Safari: version 3.1+ Opera: version 10.5+ Microsoft Internet Explorer: version 6+ Android 2.2+ and iOS 4.2+ That should have you fairly well covered, but it's always good practice to have a fall back font like i previously said.
The only things that should still be considered is the fact that the Web Font Still has to download to be displayed, this happens automatically and is then cached in the browser. Many of your users may already have your font cached, as Google Web Fonts is quite popular now, however if the user does not have it on first visit they may experience a flash of un-styled text, until the font downloads and applies.
I hope that has answered your question and i look forward to hearing and responses from the more experienced users on here. Good Luck