Archive for the 'Snippets | Code' Category
eed thumbnail creation script, images in a folder.
Highslide JS :: View topic - PHP code for browsing a folder
< ?php
if ($handle = opendir('images')) {
while (false !== ($file = readdir($handle))) {
if ($file != "." && $file != "..") {
echo "
<a href='$file' onclick='return hs.expand(this)' class='highslide'>
<img src='thumbnail-creation-script.php?src=$file' alt=''/>
";
}
}
closedir($handle);
}
?>
he solution appears to be setting wmode to transparent in the flash markup. This has to be done for both the object/param and embed tags. This is new knowlegde to me, but in the future I will try to do this automatically in Highslide so that the web designer doesn’t have to think about it.
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/flash/swflash.cab#version=6,0,0,0"
width="300" height="250" id="Flash" align="">
<param name="movie" value="Flash.swf">
</param><param name="quality" value="high">
</param><param name="bgcolor" value="#FFFFFF">
</param><param name="wmode" value="transparent">
<embed src="Flash.swf" quality="high" bgcolor="#FFFFFF" width="300"
height="250" name="Flash" align="" wmode="transparent"
type="application/x-shockwave-flash"
pluginspage="http://www.macromedia.com/go/getflashplayer">
</embed>
</param></object>
Highslide JS :: View topic - flash objects
mage Preloading
CSS Tip: Preloading Images With CSS
First, let’s create a class with display set to none and add it to the HEAD section of the home page:
<style type="text/css">
.hiddenPic {display:none;}
</style>
Next, we’ll add image tags for our puppy pictures to the bottom of the home page. Always place them at the bottom of the page! If the visitor is at the home page, you certainly want it to display as quickly as possible. Let the browser display the home page and its images before it starts trying to retrieve the images for the next page.
<img src="poodle-puppy-Clara.jpg"
alt="Clara at 8 weeks" title="Clara at 8 weeks"
height="350" width="350" class="hiddenPic"/>
<img src="poodle-puppy-Kenny.jpg"
alt="Kenny at 10 weeks" title="Kenny at 10 weeks"
height="350" width="350" class="hiddenPic"/>
<img src="poodle-puppy-Aiko.jpg"
alt="Aiko at 6 weeks" title="Aiko at 6 weeks"
height="350" width="350" class="hiddenPic"/>
ighslide - extra photos in captions, click to enlarge in same window.
<a href="my-image.jpg" onclick="hs.expanders[hs.getWrapperKey(this)].content.src=this.href; return false">Change picture</a>
Search
You are currently browsing the GollyGolly.com weblog archives for the 'Snippets | Code' category.
Subscribe to the Snippets | Code category. - RSS
All Categories
- Artwork (3)
- Entertainment (4)
- Food | Recipes (2)
- GollyGolly (14)
- Have to Have (4)
- Inspiration (4)
- Interesting (6)
- News (9)
- Online Amusement (11)
- Photos (11)
- Questions | Survey (2)
- Quotes (24)
- Snippets | Code (4)
- Tweet (20)
- Uncategorized (1)
- Wordpress (2)
All Tags
A animals art birthday celebrities Christmas code Colorado creative css decor excerpt experiment family flash flowers highslide holidays humor Inspiration J lists movies News obsessed parenting photoshop ponder sad scan shopping sleep updates webjunk work




