kdesilva Posted March 31, 2006 Share Posted March 31, 2006 Just a small one..I want to be able to add the code [code]rel="lightbox"[/code] .. to this code[code]<a href="'.$gallery_uri.'file='.$current.$path['basename'].'">'.$path['basename'].'</a>[/code]How do I do it? The "" keeps effing everythign up .. Quote Link to comment Share on other sites More sharing options...
wildteen88 Posted March 31, 2006 Share Posted March 31, 2006 Do you want [i]rel="lightbox"[/i] to passed over the URL or do want it to be as an attribute as I dont know where you want it. If you want it be passed over the URL then use this:[code]'<a href="'.$gallery_uri.'file='.$current.$path['basename'].'&rel=lightbox">'.$path['basename'].'</a>'[/code]or if as an attrubute use this:[code]'<a href="'.$gallery_uri.'file='.$current.$path['basename'].'" rel="lightbox">'.$path['basename'].'</a>'[/code] Quote Link to comment 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.