Jump to content

Archived

This topic is now archived and is closed to further replies.

Jigsawpuzzleman

Replacing some text with an image

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

Share this post


Link to post
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"

Share this post


Link to post
Share on other sites
[!--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

Share this post


Link to post
Share on other sites

×

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.