Jump to content

Recommended Posts

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:

[code]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);
}[/code]

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
Link to comment
https://forums.phpfreaks.com/topic/9717-replacing-some-text-with-an-image/
Share on other sites

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"
  • 2 weeks later...
[!--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) [snapback]374140[/snapback][/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

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.