So I made a custom size del.icio.us Widgetbox widget for my Ning profiles, but Widgetbox won’t put it in their gallery because the links don’t open in a new window. I added the code they provide to make it do this but it appears not to work. I think because the links are being created by the del.icio.us javascript rather than already being in the widget. Does anyone know how to fix this? The other del.icio.us tagroll widget must have managed it because it’s in the Widgetbox gallery, but you can’t resize that one on Ning. Here’s my code:
<script>
var i;
var aTags = document.getElementsByTagName(“a”);
for (i=0; i < aTags.length; i++) {
aTags[i].setAttribute(“target”, “_new”);
}
var areaTags = document.getElementsByTagName(“area”);
for (i=0; i < areaTags.length; i++) {
areaTags[i].setAttribute(“target”, “_new”);
}
</script>
<div style="padding:7px;font-family:Arial;
width:${config.width}px;">
<script type="text/javascript"
src="http://del.icio.us/feeds/js/tags/${config.username}
?count=${config.number};
size=${config.minimum}-${config.maximum};
color=${config.little-colour}-${config.big-colour};
title=${config.title};name">
</script>
</div>
_____________________________EDIT___________________________
Solution! OK so I wrote to Widgetbox support eventually and they’ve helped loads. They’ve now added a ‘code snippet’ inserter into the widget code editor which adds the correct code for making links open in a new window. Apparently the problem was with copy-pasting the code into my widget made the quotes into speech marks rather than those code type straight quotes. So now that’s fixed. BUT sometime in the last week the actual widget itself has broken on Ning. The widget is fine on Widgetbox, but even the ‘add to Ning’ option has disappeared. I can’t find an ‘add to Ning’ option on any of the other widgets either so I wonder if Ning has changed something and become incompatible? Anyway, I’ve asked Widgetbox about this again so bear with me and I’ll let you know what they say…
I got tagged (by Rowan Stanfield) in a game of blog tag a while ago and I only just got around to doing this. So here’s 8 random things about me.
1. I’ve done a round-the-world trip twice. My favourite cities have been Melbourne, San Francisco, Seattle, Vancouver and New York (and of course Brighton!). New Zealand is over-rated. New Delhi (and surrounding area) is depressing. Hawaii is full of tourists. Fiji is beautiful but full of honeymooners and Christians.
2. I am impressed by films involving aliens, robots, zombies, gore, explosions, and big guns.
3. I am scared of the dark. Possibly due to over exposure to things in point 2.
4. I am constantly looking for a new job, even when I like my current one. I think I like to keep up to date with what opportunites exist, and how much I *could* earn.
5. despite point 4, OKCupid.com tells me I am unambitious. I think that’s because I put lots of things before money/ownership, but I think OKCupid has ambition confused with materialism. I’ve been on OKCupid for years and years. It’s good for self-obsession but nearly everyone on there is really ugly.
6. I play World of Warcraft. My main character is currently level 45. I don’t obsess over it, but have been known to play for about 5 hours in a row on occasion. Even though I find it repetitive, it’s quite a good way to unwind. When I was about 16 I had to ban myself from playing Doom because I started to tense up when approaching a corner in real life, envisioning flaming skulls coming at me from the other side. I went cold turkey on it.
7. I’m totally fat-ist. I think people should know when to stop eating and just not be fat. If you eat too much, you are greedy and weak. It’s a sign of lack of self control. I just don’t like looking at fat people. I know this is hypocritical because I’d quite like to gain about a stone and I find that hard. Oh well, I’m a hypocrite and a bad person.
8. I did a Biology degree and specialised in evolution and mating behaviour. So I know lots of strange facts about slug mating rituals, field mouse penises and how environmental resources relate to monogammy/polygammy. I do tend to apply my knowledge of evolution to understanding human behaviour, relationships and flirtation.
OK so now I have to tag 8 people and they can do the same if they like (but they don’t have to):