Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

telerik -- supercharge your DNN websites
  Need Help?  
Professional technical support for DotNetNuke is available from DotNetNuke Corporation.
 


  Ads  
r2i.ntegrated
 


  Sponsors  

Meet Our Sponsors

SourceGear - Tools for Developers
.: CounterSoft :.
telerik
ExactTarget email software solutions
Merak Mail Server
WebSecureStores -- ASP.NET & DotNetNuke Hosting Solutions
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Make it Hot! ( ...  Open menu links in a new browser window
Previous Previous
 
Next Next
New Post 6/21/2008 10:35 AM
User is offline ericb1
15 posts
10th Ranked


Open menu links in a new browser window 

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!

 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Make it Hot! ( ...  Open menu links in a new browser window
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, please observe the following posting guidelines:

1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


DotNetNuke® in Sweden
All service of DotNetNuke® in Sweden.
Olsmar Konsult
Overlook Technology
Website Development, DotNetNuke Consulting, Module Development, Portal Management
OverlookTechnology.com
DeutschNetNuke = DotNetNuke in German
DeutschNetNuke provides all DotNetNuke related services in German (and English).
www.DeutschNetNuke.de

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP