Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...javascript within HTML skinjavascript within HTML skin
Previous
 
Next
New Post
7/9/2010 11:48 AM
 
Hello -
First, I am new to this environment so I apologize if I am posting my question in the wrong area.
Anyways, I have a HTML file that I have made for a skin and have uploaded to DNN.  The HTML file has javascript for the rollovers for the navigation.
I noticed that the rollovers are not working when I preview the skin.  I noticed that the javascript is not loading within the skin.
So my question is how to I incorporate the javascript into the skin for the rollovers to work.
I've been editing my HTML file and uploading it to DNN and then previewing it in the admin panel.  I am not sure if I need to edit the ascx file in order to get the JS to work or what.
Again, I am new to this so I apologize for my noob behavior.
Thanks!
 
New Post
7/10/2010 3:26 AM
 
I assume, the paths are not properly used - be aware that on the server you need to provide paths from the web site root, not from your html file in the skin folder.

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
7/12/2010 11:04 AM
 
First off, thanks for the reply.  I appreciate it!
Second, I am not sure on where the paths can be set.

In my html file, it is using dreamweaver's rollover javascript which embeds into the html file.  It adds in the the calls to the javascript inline with the image and the navigation:

<a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('features','','images/btn_features2.gif',1)"><img src="images/btn_features1.gif" alt="Features &amp; Exhibits" name="features" width="160" height="35" /></a>

I have also created a js file with the core rollover javascript and placed that at the top of my ascx file in the same area where it's calling the CSS file:

<link rel="stylesheet" type="text/css" href="skin.css" />
<script type="text/javascript" src="rollover.js"></script>

I guess by biggest concern is if I am doing this correctly.  I am new to the DNN framework and I am not sure how DNN parses skins from HTML files.  I have read up on the DNN skinning guide but I am still confused on how I can get this rollover stuff to work the way that it is and not have to rebuild it at the current moment.
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...javascript within HTML skinjavascript within HTML skin


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, 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 DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out