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, ...RolloversRollovers
Previous
 
Next
New Post
4/28/2006 7:19 AM
 

Hi Guys
I'm trying to use rollovers on a skin, it works when i preview in DW on f12 but when i upload all parts including the other set of images to my local test site the rollovers are gone when you run the site
What am i doing wrong?

cheers
Pat

 
New Post
4/28/2006 3:35 PM
 
Pat,

There are a couple of ways to go about this. Here is a way that I have used using CSS.

CSS using 2 images (ihome.jpg and ihome_over.jpg):

HTML:

<td width="49">
    <a id="ihome" href="http://www.xxx.com/Home/tabid/36/Default.aspx">
        <img src="images/blank.gif">
    </a>
</td>

** important: make sure you create a blank.gif image that is transparent - can be any size 1px by 1px.

CSS:

a#ihome img {
background: url(images/ihome.jpg) top left no-repeat;height:55px;width:49px;border-width: 0;
}

a#ihome:hover img
{
background: url(media/ihome_over.jpg) top left no-repeat; background-position:0px -3px;
}

Notice on (in red) I change the background position - this will make the icon move up 3px and show the rollover image.

If you only wanted to use 1 image instead of 2 like in the example above, you could make one image with both states divide the image by 2 and then change the background position by the difference (i.e. if the single image (both regular and rollover) is 100px divide that by 2 (50px) and set the background position to either background-position: 0px -50px; if the rollover is below the regular image or background-position: 0px 50px; if it is above it. Same goes for if the images were side by side just change the background-position in your css.

Let me know if you need any more help on this.

Jon
 
New Post
5/1/2006 2:36 PM
 

HI Jon
thanks for getting back, below is part of the code from the skin.  what i've done with dreamweaver is to place a table into the skin with enough cells for the menu structure, placed the main graphic, then the rollover with a link to a hiden page, the solpartmenu has been placed just above the menu for admin bits.  the rollovers link to where the should but when you rollover the secondary grahpic vanishes
i've checked in a browser works just fine before committing it to a skin as soon as i upload it to a demo site for testing, they gone  it's as if DNN is stopping the java side of the operation hadn't noticed before but checking one of my other site its exactly the same
any suggestions

thanks
Pat

          <tr>
            <td align="right"><a href="http://localhost/321/MeettheTeam/tabid/60/Default.aspx" onMouseOut="MM_swapImgRestore()" onMouseOver="MM_swapImage('Image24','','conover.gif',1)"><img src="contactus.gif" alt="Contact us Page" name="Image24" width="127" height="18" border="0"></a></a></td>
          </tr>

 
New Post
5/4/2006 11:30 AM
 

HI Guys
Just an update, i've pulled the ascx page into DW, thing I have noticed is when DNN transfered the page from .HTM with the .XML pages the rollover image didn't get the <%= SkinPath %> added to the rollover image but  it did on the main graphic
might have been a glitch on the upload, but found the problem,
just thought I'd share what i found

thanks for your help guy's

Pat

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...RolloversRollovers


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