This is a discussion on "Please Help with hiding and displaying layers using CSS and Javascript" within the JavaScript Forum section. This forum, and the thread "Please Help with hiding and displaying layers using CSS and Javascript are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
Please Help with hiding and displaying layers using CSS and Javascript
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
Please Help with hiding and displaying layers using CSS and Javascript
Hi,
I really need some help I hope someone out there can help. Basically I'm designing a web page with the content part of the page made of a table which is scrollable showing thumbnails of fashionitems. Basically, (I'm trying to make this as clear as I can). Each item is contained within it's own table, which is enclosed within a column in the table. And what I would like to do is cover over part of items picture with a semi tranparent layer containing the item details, when a users mouse passes over the item. All other items on the page should remain in full display. I created the Javascript for this however, it only works for the first item in the table. The other items already have the semi-transparent layer on load of the page. And if I mouse over any of them, then only the first item is affected. I have created a static page to get the layout right at first, but it will eventually be done dynamically. Does that make sense at all? I used the same div repeatedly to create each items table, do they have to be unique and if they are how do I create them dynamically? Also how can I turn this into a dynamically created table, with the javascript working? Here is the code I have used The CSS code
Thank you in advance Last edited by karinne; Apr 12th, 2007 at 17:40. Reason: Please use [code]...[/code] tags when displaying code! |
|
|
|
|||
|
Re: Please Help with hiding and displaying layers using CSS and Javascript
I'm no javascript expert...I do know a little though...I mainly code in JAVA...
its coincidental though, as I am also playing around with <div>'s and their visibility attribute for my web pages. So here is what I've noticed by briefing over some of your code. You have LOTS of syntax errors: Here's a snippet of your code to show you what I mean, errors are in bold, and I've added comments in bold as well to explain the error -
Fix the errors and run it again...hope it works! Last edited by karinne; Apr 12th, 2007 at 17:40. Reason: Please use [code]...[/code] tags when displaying code! |
|
|||
|
Re: Please Help with hiding and displaying layers using CSS and Javascript
Ids have to be unique to each page. Classes do not.
IMO, ditch the layers and run as fast and as far as you can!! I would use css and positioning for the items you want to position. |
![]() |
| Tags |
| css, javascript |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [SOLVED] why isnt my javascript displaying the text | skat | JavaScript Forum | 3 | Jan 26th, 2008 20:43 |
| Hiding movie clips? | monkeygraphik | Flash & Multimedia Forum | 3 | Sep 20th, 2007 14:37 |
| robots and hiding url's | welshstew | Search Engine Optimization (SEO) | 12 | Sep 2nd, 2007 16:52 |
| Javascript menu not displaying correclty | AdRock | Web Page Design | 11 | Sep 26th, 2006 13:53 |
| Hidden layers using CSS and JavaScript | blis102 | Web Page Design | 1 | Jun 29th, 2006 21:17 |