Jump to content


Photo

Replacing some text with an image


  • Please log in to reply
2 replies to this topic

#1 Jigsawpuzzleman

Jigsawpuzzleman
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 15 May 2006 - 02:53 PM

Hi everybody - first post,

I'm fiddling around with a slideshow script called PHPSlideshow (http://www.zinkwazi.com/wp/scripts).

There are two text links which start/stop the slide show:

if ($auto == "1") {
        $auto_url = "&auto=1";
        $meta_refresh = "<meta http-equiv='refresh' content='".$delay;
        $meta_refresh .= ";url=".$path."?directory=".$directory.$auto_url."&currentPic=".$next."'>";
        $template = str_replace("<META_REFRESH>",$meta_refresh,$template);
        $auto_slideshow = "<a href='$path?directory=$directory&currentPic=$currentPic'>$lang_stop_slideshow</a>\n";
        $template = str_replace("<AUTO_SLIDESHOW_LINK>",$auto_slideshow,$template);
}
else {
        $template = str_replace("<META_REFRESH>","",$template);
        $auto_slideshow = "<a href='$path?directory=$directory&auto=1&currentPic=$next'>$lang_start_slideshow</a>\n";
        $template = str_replace("<AUTO_SLIDESHOW_LINK>",$auto_slideshow,$template);
}

I'd like to replace the $lang_stop_slideshow and the $lang_stop_slideshow with images - start/stop buttons but I haven't got a clue how.

I'd be very grateful for any help...

Jpm

#2 .josh

.josh
  • Staff Alumni
  • .josh
  • 14,871 posts

Posted 15 May 2006 - 10:05 PM

umm..just...remove it and put an <img ...> tag in there instead?

anything between the <a href ...> .... </a> tags will be turned into the link. all that that code is doing right now is displaying whatever value is in those variables - presumably "Start" and "Stop"
Did I help you? Feeling generous? Buy me lunch! 
Please, take the time and do some research and find out how much it would have cost you to get your help from a decent paid-for source. A "roll-of-the-dice" freelancer will charge you $5-$15/hr. A decent entry level freelancer will charge you around $15-30/hr. A professional will charge you anywhere from $50-$100/hr. An agency will charge anywhere from $100-$250/hr. Think about all this when soliciting for help here. Think about how much money you are making from the work you are asking for help on. No, we do not expect you to pay for the help given here, but donating a few bucks is a fraction of the cost of what you would have paid, shows your appreciation, helps motivate people to keep offering help without the pricetag, and helps make this a higher quality free-help community :)

#3 Jigsawpuzzleman

Jigsawpuzzleman
  • New Members
  • Pip
  • Newbie
  • 2 posts

Posted 29 May 2006 - 10:11 AM

[!--quoteo(post=374140:date=May 16 2006, 12:05 AM:name=Crayon Violent)--][div class=\'quotetop\']QUOTE(Crayon Violent @ May 16 2006, 12:05 AM) View Post[/div][div class=\'quotemain\'][!--quotec--]
umm..just...remove it and put an <img ...> tag in there instead?

anything between the <a href ...> .... </a> tags will be turned into the link. all that that code is doing right now is displaying whatever value is in those variables - presumably "Start" and "Stop"
[/quote]

Crayon, Thanks for your help and sorry I took so long acknowledging it.

J






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users