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, ...Howto include a behavior file?Howto include a behavior file?
Previous
 
Next
New Post
11/24/2006 8:25 AM
 
DNN 4.3.6

I try to include the behavior file: csshover.htc to get IE6 to support hover on non <A> elements.

I have this in my skin.css file

      body {
          behavior:url("http://my.website.com/csshover.htc");
      }


And put the file in the install root folder (and in the skinpath folder), this works but I'll have to change the path for every site / alias.

I would like to use a relative path instead.

    behavior:url("<% = skinpath%>csshover.htc")
Doesn't work in the css file, only in the skin's ascx file

I tried adding this to the ascx file but no luck (didn't expect it would):
      body {
         
behavior:url("<% = skinpath%>csshover.htc")
      }

I must be missing something here, does anybody have a good / working solution?

Thanks


 
New Post
11/25/2006 4:33 AM
 
skinpath is for the html or ascx file and it is not parsed in css as far as I know. You can however put it in portal/_default folder No?

Just name it appropriatly for every skin. It would be a seperate upload to portal directory.

Salar
 
New Post
11/25/2006 8:35 AM
 
Salar

Thanks for your reply.
I know the CSs file doesn't get processed, but I just tried "everything"...

My examples are not completely clear I think...

The file: csshover.htc has to be loaded for Iexplorer 6 to support hover on non <a> tags

If I put the file in the DNN root, and use this: BODY{behavior:url('csshover.htc')}, it's partly okay...

As long as I visit the site's homepage.
The URL in the browser shows: http://mysite.com/ and the behavior works in IE.

If I use the menu, and the url get rewritten IE doesn't find the behavior anymore.

Which is kind of logical since it would try to find http://mysite.com/testpage/tabid/45/csshover.htc  I guess.

I think that's why setting the pathin my CSS file to: http://mysite.com/csshover.htc does work
  

The same happens if I put the behavior file in a folder, the skin folder or in /Portals/0 and change the css path accordingly.
(Turning off the URL rewriter is not an option for me...)

Since I want to use this behavior for all my sites (for the IE Hover bug) I'm looking for a "relative path" solution...
It doesn't have to be part of a skin, I would like to add it to all my dnn installations somehow...
So any solution is welcome.

Thanks a lot for you time.



 
New Post
11/25/2006 6:12 PM
 
I did not know about this bug.

Let me know what the fix is? is tha fix the same for all skins or does one need to customize it for every situation?

I like to do some investigation

Salar
 
New Post
11/26/2006 3:29 AM
 
Hello Salar

IE below version 7 doesn't support :hover on any elements but links.
The only thing you have to do is include a behavior and IE will support hovers on for instance <TD> and <LI> (that's what I'm after).
You don't have to change anything for specific skins, in a way it's a kind of bug fix.
By the way, the png transparent bug in IE can be fixed this way too...

The best link to start is this:

    The creator of the behavior
   
It seems everybody (who has a problem with the bug) is using his script...

The main reason for me  to use this script is that with a CMS like DNN you don't always have control over the HTML a menu component generates. (I prefer unordered lists as a menu.)

If the menu renders:

   <ul>
       <li><span>...</span><a>link1</a><span></span></li>
       <li><span>...</span><a>link2</a><span></span></li>
   </ul>

You will have to use the hover on the <li> since setting the <a> to display:block will cause IE to render a linebreak beause of the span behind it.

By the way, IE on the Mac is not supported, but those people should be used to some bugs...
   





 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Howto include a behavior file?Howto include a behavior file?


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