FAQ  •  Register  •  Login

show image when when autoplay is off

<<

lilly123

Posts: 3

Joined: Sun Jan 18, 2009 3:10 am

Post Sun Jan 18, 2009 3:32 am

show image when when autoplay is off

I read that I could show an image (image = url) for a jpg image that is shown when autoplay is off
(http://lacymorrow.com/projects/xspfwmp/xspfdoc.html) but when I try to pass
that variable no image shows unless I click on a track to play and then the image associated
with the track shows

here is my code - I'm hoping someone can tell me what I am doing wrong

  Code:
<?php xspf_player::start(FALSE, 'autoload=TRUE&mode = 4&image=http://somesite.com/images/myimage.jpg'); ?>


Any advice would be much appreciated :-) ~lilly
<<

lilly123

Posts: 3

Joined: Sun Jan 18, 2009 3:10 am

Post Sun Jan 18, 2009 5:51 pm

Re: show image when when autoplay is off

Ok - I came up with a hack that works well in Firfox but not in IE

  Code:
<span onclick="document.getElementById('changeDefault').style.display='none';">
<img id="changeDefault" style="position: absolute;top:26px;left:6px;width:130px;height:130px;display:block;" src="http://mysite.com/wp-content/uploads/2009/01/myimage.jpg">
<?php xspf_player::start(FALSE, 'autoload=TRUE&mode = 4'); ?></span>


I can click anywhere on the player in firefox and the player will start and the default image will disapear
but in ie I have to click directly on the picture for the image to disappear

any ideas how I might get this to work when clicking on the player in ie ???

thanks, lilly
<<

lilly123

Posts: 3

Joined: Sun Jan 18, 2009 3:10 am

Post Mon Jan 19, 2009 3:23 pm

Re: show image when when autoplay is off

ok I did a test without the player and it works fine in both ie and ff - so the problem is how ie handles the flash - ugh! ~lilly

  Code:
<div style="width:400px;height:250px;background:#ffff00;border: 1px solid black;" onClick="document.getElementById('changeDefault').style.display='none';">
<img id="changeDefault" style="position:absolute;top:25px;left:10px;width:130px;height:130px;display:block;" src="myimage.jpg">
<p><br />hidden content</p>
</div>
<<

boriel

Site Admin

Posts: 1147

Joined: Wed Nov 01, 2006 6:18 pm

Location: Santa Cruz de Tenerife, Spain

Post Fri Feb 13, 2009 8:06 am

Re: show image when when autoplay is off

lilly123 wrote:ok I did a test without the player and it works fine in both ie and ff - so the problem is how ie handles the flash - ugh! ~lilly

  Code:
<div style="width:400px;height:250px;background:#ffff00;border: 1px solid black;" onClick="document.getElementById('changeDefault').style.display='none';">
<img id="changeDefault" style="position:absolute;top:25px;left:10px;width:130px;height:130px;display:block;" src="myimage.jpg">
<p><br />hidden content</p>
</div>

Hmm, I'm not sure if what you want could be done: This is likely a matter of the flash player instead of a plugin one. On the other hand, I see you use spaces in the parameters. I recommend you not to use them. So better use 'mode=4' instead of 'mode = 4'.

I think you should better go to the management panel (on the Wordpress Admin ==> Management ==> XSPF_Player), and enter the track data (track URL & Image Url), insted of using it inline. Try this and tell me.

Return to XSPF Player Plugin (English)

Who is online

Users browsing this forum: No registered users and 1 guest

cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by Vjacheslav Trushkin for Free Forums/DivisionCore.

phpBB SEO