justmattb
Forum Replies Created
-
Forum: Plugins
In reply to: Widgets and Javascript problemSorry, let me try again:
<!-- Start of Flickr Badge -->
<script type="text/javascript">
zg_insert_badge = function() {
var zg_bg_color = 'ffffff';
var zgi_url = 'https://www.flickr.com/apps/badge/badge_iframe.gne?zg_bg_color='+zg_bg_color+'&zg_person_id=59471093%40N00';
document.write('<iframe style="background-color:#'+zg_bg_color+'; border-color:#'+zg_bg_color+'; border:none;" width="113" height="151" frameborder="0"scrolling="no" src="'+zgi_url+'" title="Flickr Badge"></iframe>');
}
zg_toggleWhat = function() {
document.getElementById('zg_whatdiv').style.display = (document.getElementById('zg_whatdiv').style.display != 'none') ? 'none' : 'block';
document.getElementById('zg_whatlink').style.display = (document.getElementById('zg_whatdiv').style.display != 'none') ? 'none' : 'block';
return false;
}
</script><script type="text/javascript">zg_insert_badge();</script>
<script type="text/javascript">if (document.getElementById) document.getElementById('zg_whatdiv').style.display = 'none';</script>
<!-- End of Flickr Badge -->I have the text widget loaded on the sidebar now. It is at the bottom, but currently only shows the loaded title of the widget. Any ideas? I see that the code shows up when viewing the source, but still nothing…
Forum: Plugins
In reply to: Widgets and Javascript problemOne example is a flickr badge:
‘<!– Start of Flickr Badge –>’
‘<style type=”text/css”>’
‘.zg_div {margin:0px 5px 5px 0px; width:117px;}’
‘.zg_div_inner { color:#666666; text-align:center; font-family:arial, helvetica; font-size:11px;}’
‘.zg_div a, .zg_div a:hover, .zg_div a:visited {color:#3993ff; background:inherit !important; text-decoration:none !important;}’
‘</style>’
‘<script type=”text/javascript”>’
‘zg_insert_badge = function() {‘
‘var zg_bg_color = ‘ffffff’;’
‘var zgi_url = ‘https://www.flickr.com/apps/badge/badge_iframe.gne?zg_bg_color=’+zg_bg_color+’&zg_person_id=59471093%40N00′;’
‘document.write(‘<iframe style=”background-color:#’+zg_bg_color+’; border-color:#’+zg_bg_color+’; border:none;” width=”113″ height=”151″ frameborder=”0″ scrolling=”no” src=”‘+zgi_url+'” title=”Flickr Badge”><\/iframe>’);’
‘if (document.getElementById) document.write(‘<div id=”zg_whatlink”>what is this?<\/a><\/div>’);’
‘}’
‘zg_toggleWhat = function() {‘
‘document.getElementById(‘zg_whatdiv’).style.display = (document.getElementById(‘zg_whatdiv’).style.display != ‘none’) ? ‘none’ : ‘block’;’
‘document.getElementById(‘zg_whatlink’).style.display = (document.getElementById(‘zg_whatdiv’).style.display != ‘none’) ? ‘none’ : ‘block’;’
‘return false;’
‘}’
‘</script>’
‘<div class=”zg_div”><div class=”zg_div_inner”>https://www.<strong style=”color:#3993ff”>flick<span style=”color:#ff1c92″>r</span>.com<br>’
‘<script type=”text/javascript”>zg_insert_badge();</script>’
‘<div id=”zg_whatdiv”>This is a Flickr badge showing public photos from mwbarker. Make your own badge here.</div>’
‘<script type=”text/javascript”>if (document.getElementById) document.getElementById(‘zg_whatdiv’).style.display = ‘none’;</script>’
‘</div>’
‘</div>’
‘<!– End of Flickr Badge –>’I am trying to add it to this site:
https://www.thebarkersworld.com
It also occurs with Google AdSense code, which also uses javascript.