Jump to content

Opacity Issue


lostprophetpunk

Recommended Posts

Hello there,

 

I have decided to experiment with the opacity in different browsers for some images. However...

 

When I test them in the page I want they do not work, but when I test the exact same code (just the css and html related to those images) on a different page they work. I cannot figure out what is wrong.

 

I have tried it both in php and html.

 

		echo "<div id=\"ftitle\"><img src=\"/drew/images/i-v-rwc.png\" alt=\"\" /></div>\n";
	echo "<object width=\"940\" height=\"547\"><param name=\"movie\" value=\"http://www.youtube.com/v/-FrbICttxGQ&hl=en_US&fs=1?hd=1\"></param><param name=\"allowFullScreen\" value=\"true\"></param><param name=\"allowscriptaccess\" value=\"always\"></param><embed src=\"http://www.youtube.com/v/-FrbICttxGQ&hl=en_US&fs=1?hd=1\" type=\"application/x-shockwave-flash\" allowscriptaccess=\"always\" allowfullscreen=\"true\" width=\"940\" height=\"547\"></embed></object>\n";
	echo "<br /><br /><div id=\"shots\">\n";
	echo "<a href=\"images/i-b-rwc.png\" class=\"lil\" title=\"Screenshot #1\" target=\"_blank\"><img src=\"images/i-s-rwc1.png\" alt=\"\" /></a>\n";
	echo "<a href=\"images/i-b-rwc2.png\" class=\"lil\" title=\"Screenshot #1\" target=\"_blank\"><img src=\"images/i-s-rwc2.png\" alt=\"\" /></a>\n";
	echo "<a href=\"images/i-b-rwc3.png\" class=\"lil\" title=\"Screenshot #1\" target=\"_blank\"><img src=\"images/i-s-rwc3.png\" alt=\"\" /></a>\n";
	echo "<a href=\"images/i-b-rwc4.png\" class=\"lil\" title=\"Screenshot #1\" target=\"_blank\"><img src=\"images/i-s-rwc4.png\" alt=\"\" /></a>\n";
	echo "<a href=\"images/i-b-rwc5.png\" class=\"lil\" title=\"Screenshot #1\" target=\"_blank\"><img src=\"images/i-s-rwc5.png\" alt=\"\" /></a>\n";
	echo "</div>\n";

 

#shots { width: 940px; height: 100px; }
#shots img { float: left; }
.lil img {filter:alpha(opacity=50); -moz-opacity: 0.5; opacity: 0.5; -khtml-opacity: 0.5; }
.lil:hover img { filter:alpha(opacity=100); -moz-opacity: 1.0; opacity: 1.0; -khtml-opacity: 1.0; }

 

If anyone could help out, thanks in advance.

Link to comment
Share on other sites

"Just doesn't work" doesn't tell us anything - do you get an error? does the page even load or is it blank? :P

 

Can you copy and paste the code on the page that works and the code as it is on the page that doesn't?

 

On a side note, when dealing with single and double quotes, I find it easier to go

echo '<a href="">'; //or
echo "<a href=' '>";

rather than using all of the escape quotes.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.