Jigsawpuzzleman Posted May 15, 2006 Share Posted May 15, 2006 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."¤tPic=".$next."'>"; $template = str_replace("<META_REFRESH>",$meta_refresh,$template); $auto_slideshow = "<a href='$path?directory=$directory¤tPic=$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¤tPic=$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 Quote Link to comment https://forums.phpfreaks.com/topic/9717-replacing-some-text-with-an-image/ Share on other sites More sharing options...
.josh Posted May 15, 2006 Share Posted May 15, 2006 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 Link to comment https://forums.phpfreaks.com/topic/9717-replacing-some-text-with-an-image/#findComment-36098 Share on other sites More sharing options...
Jigsawpuzzleman Posted May 29, 2006 Author Share Posted May 29, 2006 [!--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 Quote Link to comment https://forums.phpfreaks.com/topic/9717-replacing-some-text-with-an-image/#findComment-39911 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.