Using DNN 4.7 and the beyondcss skin from speerio. I wanted to open some menu links in a new browser window because they're external links to my site. So from the speerio site, I was helped by adding a text module to a page and adding this javascript to the header:
<script type="text/javascript">
<!--
var menuLinks = document.getElementById('smenu').getElementsByTagName('a');
for(j=0;j<menuLinks.length;j++){
if(menuLinks[j].href.indexOf('http://site/mysite/') == -1){
menuLinks[j].target = '_blank';
}
}
-->
</script>
So now any link that's not an index of my site opens in a new window. This works great. However, now I would like to use a different skin, and this little bit of javascript doesn't work on the new skin (Flux). I'm not the best with javascript, but is there something simple that I can do to change it so that it will work with my new skin? I'm guessing that the new skin doesn't use some of this syntax?
Any help is greatly appreciated, thanks!