Flickr code gone wrong |
![]() ![]() |
Flickr code gone wrong |
Jul 21 2005, 07:00 PM
Post
#1
|
|
![]() Member ![]() ![]() Group: Member Posts: 12 Joined: Mar 2005 Member No: 120,447 |
hello can someone help me...i can't seem to put my Flickr badge on my page...i have used both
this code: <script type="text/javascript"> var zg_nsids = '84885836@N00'; </script> <script src="http://www.flickr.com/fun/zeitgeist/badge.js.gne" type="text/javascript"></script> and this code: <!-- Start of Flickr Badge --> <style type="text/css"> .zg_div {margin:0px 5px 5px 0px; width:117px;} .zg_div_inner {border: solid 1px #000000; background-color:#ffffff; 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 = 'http://www.flickr.com/apps/badge/badge_iframe.gne?zg_bg_color='+zg_bg_color+'&zg_person_id=84885836%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"><a href="http://www.flickr.com/badge_new.gne" style="color:#3993ff;" onclick="zg_toggleWhat(); return false;">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"><a href="http://www.flickr.com">www.<strong style="color:#3993ff">flick<span style="color:#ff1c92">r</span></strong>.com</a><br> <script type="text/javascript">zg_insert_badge();</script> <div id="zg_whatdiv">This is a Flickr badge showing public photos from <a href="http://www.flickr.com/photos/84885836@N00">punkyb1127</a>. Make your own badge <a href="http://www.flickr.com/badge_new.gne">here</a>.</div> <script type="text/javascript">if (document.getElementById) document.getElementById('zg_whatdiv').style.display = 'none';</script> </div> </div> <!-- End of Flickr Badge --> i juss can't seem to make the code work..i've even tried putting it in an extra left module but the module deletes everytime i put one of the links in...can someone please help me brittney <3 |
|
|
|
Jul 21 2005, 07:10 PM
Post
#2
|
|
![]() i lost weight with Mulder! ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Official Designer Posts: 4,070 Joined: Jan 2005 Member No: 79,019 |
first off use a codebox.
and....the 1st code is javascript, so try putting it in your javascript module. if that doesnt work, try this code i ran that through codehouse um...i noticed that theres an extra </div> so if this doesnt work reencode it without the extra <div> code. |
|
|
|
Jul 21 2005, 07:10 PM
Post
#3
|
|
![]() i lost weight with Mulder! ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Official Designer Posts: 4,070 Joined: Jan 2005 Member No: 79,019 |
oops double post
|
|
|
|
Jul 21 2005, 07:14 PM
Post
#4
|
|
![]() Member ![]() ![]() Group: Member Posts: 12 Joined: Mar 2005 Member No: 120,447 |
yea i tried putting it in javascript box and that didnt work either...let me try the other one u gave me
|
|
|
|
Jul 21 2005, 07:18 PM
Post
#5
|
|
![]() Member ![]() ![]() Group: Member Posts: 12 Joined: Mar 2005 Member No: 120,447 |
nope still didnt work :(
|
|
|
|
Jul 21 2005, 10:55 PM
Post
#6
|
|
|
Senior Member ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Member Posts: 3,551 Joined: Feb 2005 Member No: 102,857 |
i think you have to encode ur code twice
once here http://ccc.1asphost.com/wo0ow/index.asp and once again here www.codehouse.com/webmaster_tools/html_encoder/ |
|
|
|
Jul 22 2005, 11:13 AM
Post
#7
|
|
![]() Member ![]() ![]() Group: Member Posts: 12 Joined: Mar 2005 Member No: 120,447 |
thank you so much, frozencloud!! putting both of them DID work i can't tell u how much i appreciate it!! |
|
|
|
Jul 22 2005, 12:41 PM
Post
#8
|
|
![]() crushed. ![]() ![]() ![]() ![]() ![]() ![]() ![]() Group: Staff Alumni Posts: 9,432 Joined: Jun 2004 Member No: 20,026 |
|
|
|
|
![]() ![]() |