Solved

Using Mootools rounded corners and slide-in divs - can't click links

Posted on 2008-10-21
6
2,091 Views
Last Modified: 2012-05-05
I'm using Mootools to create a sliding div effect overlaying an image, this can be viewed here - http://www.ceramic.arrivalpreview.co.uk/test/products.asp.

I'm also using a rounded corners script again using Mootools.

The problem I'm having is I'm using these buttons to link to different pages and in Firefox it's simply not working at all, whereas in IE it's fine?

I've tried making the image the link, but once the div has overlayed it, it doesn't work?

Any ideas?

Thanks

Chris
0
Comment
Question by:djfenom
  • 4
  • 2
6 Comments
 
LVL 16

Expert Comment

by:sh0e
ID: 22765565
The rounded corners divs are overlaying your content div, covering it.
IE doesn't actually work properly, if you look closely at the rounded corner.
0
 

Author Comment

by:djfenom
ID: 22765587
It seems ok at this end in IE7? Any idea of how to fix it?
0
 
LVL 16

Expert Comment

by:sh0e
ID: 22765617
var image1 = new RoundedCorners('.prod_img', {overlay: true, radius: 20, cls: 'image'});
change overlay: true to overlay: false
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
LVL 16

Expert Comment

by:sh0e
ID: 22765670
The above will make the rounded corners stop working.
If you are ok with making the entire thing a link, not just when the text pops up:

Put overlay: true back.
Make the link enclose the entire prod_img
        <div class="prod_item">

		<a href="product-list.asp?id=3">

          <div class="prod_img"> <img src="/images/designer-wall-icon.jpg" alt="" width="202" height="102" />

            <div class="prod_desc">

              <p><a><span>Urban Inspirations</span>Velit esse cillum dolore ut aliquip ex ea commodo consequat.</a></p>

            </div>

          </div>

		</a>

Open in new window

0
 

Author Comment

by:djfenom
ID: 22766261
Is that good practice though, putting a <div> in an <a>?
0
 
LVL 16

Accepted Solution

by:
sh0e earned 500 total points
ID: 22770063
No, it won't validate, which from your well-formed source seems important to you.

I was able to quickly reproduce rounded corners that won't overlay the entire box, so it's possible, but the rounded corners script you are using would need to be rewritten (most of it at least).

z-index: 3 needs to be removed from the main rounded corner div.
The corner divs would each need to be given absolute positioning in the right positions, instead of stacking them, and z-index: 3 to each.
Eg:
.imageBottomRight {
position: absolute; top: 82px; left: 182px; width: 20; height: 20; z-index: 3
}

This seems to be a common problem in all of the implementations of rounded corners.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now