prettyphoto wont load when writing href using document.write

pie2121

New Member
i have some codes like this\[code\]<span id="$RsC" class="menu" title="Action menu" onclick="menu(\''.$RsC.'\')">click</span>function menu(id){ var d = document.getElementById(id); d.innerHTML ='<a href="http://stackoverflow.com/questions/9010089/somthing;iframe=true&width=400&height=170" rel="prettyPhoto[iframe]" >Doesnt work</a>';}<script type="text/javascript" charset="utf-8">jQuery.noConflict();jQuery(document).ready(function($) {$(".pp_pic_holder").remove(); $(".pp_overlay").remove(); $(".ppt").remove();$(".gallery a[rel^='prettyPhoto']").prettyPhoto({theme:'h0mayun'});});</script>\[/code\]the problem is that after clicking on "click" and writing html link prettyPhoto plugin doesn't loadany help will be appreciated.EDIT-------------------damn you conflict it was again jquery conflict but to got it work i change function to this:\[code\]<script type="text/javascript" charset="utf-8">jQuery.noConflict();jQuery(document).ready(function($) {$(".pp_pic_holder").remove(); $(".pp_overlay").remove(); $(".ppt").remove();$(".gallery a[rel^='prettyPhoto']").prettyPhoto({theme:'h0mayun'});});</script>function menu(id){ var d = document.getElementById(id); d.innerHTML ='<a href="http://stackoverflow.com/questions/9010089/somthing;iframe=true&width=400&height=170" rel="prettyPhoto[iframe]" >Doesnt work</a>';jQuery.noConflict();jQuery(document).ready(function($) {$(".pp_pic_holder").remove(); $(".pp_overlay").remove(); $(".ppt").remove();$(".gallery a[rel^='prettyPhoto']").prettyPhoto({theme:'h0mayun'});});}\[/code\]
 
Top