YUILight - Spotlight Your Page Elements With YUI
YUILight is a customisable YUI Script that will highlight an element on your page simply by applying a class of 'yuilight' to that element. When that element is clicked and focused on, everything else on the page will be covered by a mask and that single element will stand out from the rest.
It is a very simple script to implement only requiring two javascript files and no CSS! The options for customising the script can be found at the top of the javascript file (which is fully commented for you). At the moment you can change the generic background colour (when no background colour has been specified for the element). This option is so that your element doesn't disappear with the text.
You can also configure the opacity of the mask element and the animation speed that it shows and hides. I will be adding more customisable fields later on but if you have any requests please feel free to leave them in the comments section at the bottom of this post.
<script type="text/javascript" src="yui/utilities.js"></script> <script type="text/javascript" src="yui/yuilight.js"></script>
I've prepared a little example page here which will guide you through the various options in a little more detail. Comments welcome below and please enjoy the script!
Article Info
- Posted By: Alex Hall
- On: 26th Mar 2010 @ 13:38:46
- Comments: 70
- Rating: 5 / 5
- Hits: 5777
- Listed In: tutorials, tools, javascript, css
- Short URL: http://bit.ly/akVFYh

Author: Luke Smith
#1 | 07th Apr 2010 @ 18:37
Nice work, Alex! The point you note about the mouseover of an element that has child nodes is because the mouseover event fires for the child elements then bubbles up to the element that has the subscriber that triggers the light behavior. You can avoid this by using the mouseenter event or confirming in the subscriber that YAHOO.util.Event.getTarget(e) === theNodeThatShouldTrigger;
You should make this into a YUI 3 Gallery module!
reply
Author: Alex Hall
#2 | 20th Apr 2010 @ 11:21
Hi Luke,
Thanks for the comments, and for the fix. I'll get that implemented right away!
I've been playing around with YUI3 quite a bit recently so I'll look at doing that. There's some very amazing stuff in the YUI 3 Gallery modules!
reply
Author: laria hamtong
#3 | 21st Oct 2011 @ 04:57
The YUI Carousel Control provides a widget for browsing among a set of like objects arrayed vertically or horizontally in an overloaded page region. The "carousel" metaphor derives from an analogy to slide carousels in the days of film photography; the Carousel Control can maintain fidelity to this metaphor by allowing a continuous, circular navigation through all of the content blocks.
text spy
Author: Robert
#4 | 16th Nov 2011 @ 04:19
It is really new away to remark the info. There have lot of info about the seeking need. I realize its implementation very well. New Hampshire Weddings NH Weddings
reply
Author: vijaysbhagat
#5 | 21st Nov 2011 @ 09:56
Excellent stuff from you, man. Iâve read your things before and you are just too awesome. I tinnitus home remedy adore what you have got right here. You make it entertaining and you still manage to keep it smart.This is truly a great blog thanks for sharing
Author: vijaysbhagat
#6 | 22nd Nov 2011 @ 19:41
I seriously loved this post, if I have your seo irvine permission may i duplicate this particular post to my personal website and share it with others as well. Obviously Iâm going to give the original credits to you only
Author: vijjaysbhagat
#7 | 23rd Nov 2011 @ 05:33
Great information to say the least. I have Web Designer Tacoma really learned so much from this great webisite. This was really great and fun for me to read.
Author: vijaysbhagat
#8 | 23rd Nov 2011 @ 07:57
I seriously loved this post, if I have your permission may i duplicate xero this particular post to my personal website and share it with others as well. Obviously Iâm going to give the original credits to you only
Author: vijaysbhagat
#9 | 23rd Nov 2011 @ 19:44
Excellent stuff from you, man. Iâve read your things before and you trendlists.com are just too awesome. I adore what you have got surgical tech jobs right here. You make it entertaining and you still manage to keep it smart.This is truly a great blog thanks for sharing
reply
Author: jack
#10 | 14th Oct 2011 @ 07:38
Thanks for sharing. i really appreciate it that you shared with us such a informative post.. Theses | Coursework | Assignment
reply
Author: jack
#11 | 14th Oct 2011 @ 07:39
The difference between the right word and the almost right word is really a large matter â it's the difference between a lightning bug and the lightning. Dissertation Writing | Assignment Writing
reply
Author: Online Directory
#12 | 23rd Nov 2011 @ 06:33
flew the mission in aircraft 87-0225 F-16C Block 30 NVIS . Lockheed VP Zim Zimmerman was on hand to present Mike with the one and only 4000 hr patch. It is gold in color with the falcon in the center.
reply
Author: Button_john
#13 | 01st Nov 2011 @ 06:55
This is a very simple script to implement it only requires two JavaScript files and CSS! The options to customize the script is in the beginning of the javascript file (which is fully commented to you). At this point you can change the background color of generic (with no background color is specified for the item custom boxes || Printed boxes
reply
Author: Quality Audit China
#14 | 02nd Nov 2011 @ 10:11
At the moment you can change the generic background colour (when no background colour has been specified for the element). This option is so that your element doesn't disappear with the text. l
reply
Author: Country Music
#15 | 11th Nov 2011 @ 17:48
Very nice module. It is on of my favorite gallery. This article which in turn is found in this information ended up being quite helpful. I seriously appreciated the idea a lot. Cheers a good deal pertaining to putting up such an helpful internet site in this posting.Seattle Hiphop & Country Music
reply
Author: vijaysbhagat
#16 | 21st Nov 2011 @ 12:57
This is very fascinating, You are an overly skilled blogger. Iâve joined your rss feed and Car Wreck Lawyer Austin look forward to in search of more of your fantastic post. Additionally, I have shared your website in my social networks
reply
Author: Online Directory
#17 | 22nd Nov 2011 @ 12:24
In order for us to make this as easy as possible for you, as well as our commenting system on all articles and tools .....
Author: Bond
#18 | 14th Nov 2011 @ 05:51
I really like this module. I am planing to make a post about this on my blog free jailbreak
reply
Author: cheap car insurance
#19 | 14th Nov 2011 @ 08:16
In order for us to make this as easy as possible for you, as well as our commenting system on all articles and tools
reply
Author: Quotes
#20 | 15th Nov 2011 @ 07:43
I will be adding more customisable fields later on but if you have any requests please feel free to leave them in the comments section at the bottom of this post Inspirational quotes | Love quotes.
reply
Author: Mobile Application Development
#21 | 15th Nov 2011 @ 10:49
I realised that his implementation was not going to work for multiple rating systems on the same page because it is based on ID's, and as we all know, you can only have one ID reference in the DOM on one page Mobile Application Development
reply
Author: book home
#22 | 17th Nov 2011 @ 07:15
That's a great review. Thanks, one of my fav subjects. I bookmarked your site and share. Vacation ideas - book villas online
reply
Author: childrens place coupon codes
#23 | 18th Nov 2011 @ 13:14
Thanks, one of my fav subjects. I bookmarked your site and share. Vacation ideas
reply
Author: jsmith
#24 | 19th Nov 2011 @ 12:18
than you for given an example which will guide you through the various options in a little more detail.
arrest warrants
warrants for arrest
warrant search
reply
Author: htc vivid unlock
#25 | 19th Nov 2011 @ 14:22
given an example which will guide you through the various options in a little more detail. htc vivid unlock
reply
Author: Torrie
#26 | 20th Nov 2011 @ 09:13
I admit I have not been on this blog in a long time however it was joy to find it again. It is such an important topic and ignored by so many even professionals! I thank you for helping to make people more aware of these issues. Just great stuff as per usual!Portuguese Translation
reply
Author: vijaysbhagat
#27 | 21st Nov 2011 @ 10:05
Excellent stuff from you, man. Iâve read your things before and you are just too awesome. I tinnitus home remedy adore what you have got right here. You make it entertaining and you still manage to keep it smart.This is truly a great blog thanks for sharing
reply
Author: vijaysbhagat
#28 | 21st Nov 2011 @ 10:13
Excellent stuff from you, man. Iâve read your trendlists.com things before and you are just too awesome. I adore what you have got right here. You make it entertaining and you still manage to keep it smart.This is truly a great blog thanks for sharing
reply
Author: Credit Card Merchant Account
#29 | 21st Nov 2011 @ 10:41
Signals mainly acquire to arise from the western allocation of Russia. Credit Card Merchant Account
reply
Author: free downloads
#30 | 21st Nov 2011 @ 13:27
YUILight is certainly a great script. Thanks a lot for the example guide. I'm a novice in using YUILight the guide was very helpful to me.
reply
Author: vijaysbhagat
#31 | 21st Nov 2011 @ 13:44
I recently came across your blog and have been reading along. I thought I would leave my first comment. I donât know what Luxury Fishing Lodges Alaska to say except that I have enjoyed reading. Nice blog, I will keep visiting this blog very often.
reply
Author: vijaysbhagat
#32 | 21st Nov 2011 @ 14:19
I recently came across your blog and have been Dallas Mover reading along. I thought I would leave my first comment. I donât know what to say except that I have enjoyed reading. Nice blog, I will keep visiting this blog very often.
reply
Author: vijaysbhagat
#33 | 21st Nov 2011 @ 14:52
This is very fascinating, You are an overly skilled blogger. Iâve joined your rss feed and look forward to in search of xeromore of your fantastic post. Additionally, I have shared your website in my social networks
reply
Author: how to get ripped fast
#34 | 21st Nov 2011 @ 18:12
I have gained some useful information from this site. Thanks for sharing this information.how to get ripped fast
reply
Author: franklin
#35 | 21st Nov 2011 @ 23:28
You have excellent web design skills. I have been working in this area for over 10 years and I know talent when I see it :) skagen watches | injection machines
reply
Author: the flex belt
#36 | 22nd Nov 2011 @ 16:00
This is a very simple script to implement it only requires two JavaScript files and CSS! The options to customize the script is in the beginning of the javascript file (which is fully commented to you).
the flex belt
reply
Author: ken
#37 | 22nd Nov 2011 @ 17:56
I can not recommend you guys enough. Full of useful resource and great layout very easy on the eyes. Please do keep up this great work.Sarkari Naukri
reply
Author: Website Bookmarking
#38 | 22nd Nov 2011 @ 19:23
I adore what you have got right here. You make it entertaining and you still manage to keep it smart.This is truly a great blog thanks for sharing Website Bookmarking
reply
Author: Social Bookmark
#39 | 22nd Nov 2011 @ 19:24
Great information you got here. Iâve been reading about this topic for one week now for my papers in school and thank God I found it here in your blog. I had a great time reading this . Social Bookmark
reply
Author: vijaysbhagat
#40 | 22nd Nov 2011 @ 20:02
I was completely hooked. Itâs much more stephen pierce internationalresponsive than the regular web interface, plus you can still use a bookmarklet. It sells for $5, well worth it
reply
Author: investing for beginners
#41 | 22nd Nov 2011 @ 21:48
When that element is clicked and focused on, everything else on the page will be covered by a mask and that single element will stand out from the rest thanks. investing for beginners
reply
Author: insurance health massachusetts
#42 | 23rd Nov 2011 @ 02:48
Post very nicely written, and it contains useful facts. I am happy to find your distinguished way of writing the post. Now you make it easy for me to understand and implement. Thanks for sharing with us.
insurance health massachusetts
reply
Author: insurance quotes for cars in uk
#43 | 23rd Nov 2011 @ 02:53
Thanks for a marvelous posting! I genuinely enjoyed reading it, you will be a great author.I will make certain to bookmark your blog and will often come back in the foreseeable future. insurance quotes for cars in uk
reply
Author: vijaysbhagat
#44 | 23rd Nov 2011 @ 05:51
Great information to say the least. I have really learned so much from this great webisite. This was Alaska Hunts really great and fun for me to read.
reply
Author: homeowners insurance comparison quotes
#45 | 23rd Nov 2011 @ 08:33
Its like you read my mind! You appear to know so much about this, like you wrote the book in it or something. I think that you could do with some pics to drive the message home a bit, but instead of that, this is magnificent blog. An excellent read. I will certainly be back.
homeowners insurance comparison quotes
reply
Author: homeowners insurance comparison
#46 | 23rd Nov 2011 @ 08:35
I loved as much as youâll receive carried out right here. The sketch is tasteful, your authored subject matter stylish. nonetheless, you command get got an edginess over that you wish be delivering the following. unwell unquestionably come more formerly again since exactly the same nearly very often inside case you shield this hike.
homeowners insurance comparison
reply
Author: insurance quotes for car & home
#47 | 23rd Nov 2011 @ 09:15
Discovering your personality type can help you to identify the type of work for which you are well-suited and the fields in which you are most likely to succeed.
insurance quotes for car & home
reply
Author: jasonwong
#48 | 23rd Nov 2011 @ 09:29
iphone conversion kit iphone 4s conversion kit iphone 4 conversion kit aoda yoyo auldey yoyo yoyo shop sound magic gevey supreme gevey ultra apple peel 520 apple peel 520 2nd generation acekard 2i
reply
Author: ink toner cartridges
#49 | 23rd Nov 2011 @ 09:40
Your ideas was a blessing. I was looking for this kind of article for my paper and I got here. Truly educational. Thank you so much.ink toner cartridges.
reply
Author: remanufactured toner cartridges
#50 | 23rd Nov 2011 @ 09:42
Wonderful posting and actually will help with comprehending the subject matter better. remanufactured toner cartridges.
reply
Author: canon printer refill ink
#51 | 23rd Nov 2011 @ 09:43
I used to be more than happy to seek out this internet-site.I wanted to thanks in your time for this glorious read!! I positively enjoying each little bit of it and I have you bookmarked to check out new stuff you weblog post. canon printer refill ink.
reply
Author: Schlüsseldienst Köln
#52 | 23rd Nov 2011 @ 10:21
I read blogs on a similar topic, but i never visited your blog. I added it to favorites and I'll be your constant reader.Schlüsseldienst Köln
reply
Author: insurance price elasticity
#53 | 23rd Nov 2011 @ 10:26
Is there anymore information you can give on this subject. It answers a lot of my questions but there is still more info I need. I will drop you an email if I can find it. Never mind I will just email you using the contact form. Hopefully you can help me further. insurance price elasticity
reply
Author: joedavids
#54 | 23rd Nov 2011 @ 11:36
I cant wait to read more from you. freebiejeebies
reply
Author: used machinery sales
#55 | 23rd Nov 2011 @ 12:38
The YUI Carousel Control provides a widget for browsing among a set of like objects arrayed vertically or horizontally in an overloaded page region. used machinery sales
reply
Author: viajes a Tailandia
#56 | 23rd Nov 2011 @ 16:52
Some things in here I have not thought about before. Thanks for making such a cool post which is really very well written will be referring a lot of friends about this. Keep bogging. viajes a Tailandia
reply
Author: Used Wire Deck
#57 | 23rd Nov 2011 @ 19:23
Elements in the DOM and makes simpler common tasks such as adding listeners, manipulating the DOM, and setting and getting attributes. The Element Utility provides a wrapper so that these actions can be performed directly on an Element instance. Used Wire Deck
reply
Author: sadz
#58 | 24th Nov 2011 @ 04:55
It is really new away to remark the info. There have lot of info about the seeking need. I realize its implementation very well. tweet adder coupon code
reply
Author: prem
#59 | 24th Nov 2011 @ 04:57
YUILight is certainly a great script. Thanks a lot for the example guide. I'm a novice in using YUILight the guide was very helpful to meCoolest Christmas Gifts 2011
reply
Author: vijaysbhagat
#60 | 24th Nov 2011 @ 08:32
Some interesting points, what about weight lifting though? There is a whole lot of talk about mr reynoldsâs workout or a.k.a the ryan Moving Company Fairbanks reynolds workout and it seems to work for a lot of peeps.
reply
Author: Best Space Heaters
#61 | 24th Nov 2011 @ 10:39
I used to be more than happy to seek out this internet-site.I wanted to thanks in your time for this glorious read!! I positively enjoying each little bit of it and I have you bookmarked to check out new stuff you weblog post. Best Space Heaters
reply
Author: vsb
#62 | 24th Nov 2011 @ 12:27
I was completely hooked. Itâs much more responsive than the Bankruptcy Chicago regular web interface, plus you can still use a bookmarklet. It sells for $5, well worth it
reply
Author: Breville BOV800XL
#63 | 24th Nov 2011 @ 12:34
Thanks for a marvelous posting! I genuinely enjoyed reading it, you will be a great author.I will make certain to bookmark your blog and will often come back in the foreseeable future. Breville BOV800XL
reply
Author: jerusalem hostel
#64 | 24th Nov 2011 @ 19:22
Hi,Reading your posting I love it completely we appreciate you in your effort. I want to declare that it is very good and informative. Thanks.
reply
Author: menopause treatment
#65 | 24th Nov 2011 @ 14:14
I adore what you have got right here. You make it entertaining and you still manage to keep it smart.This is truly a great blog thanks for sharing
menopause treatment
reply
Author: Billigste mobil abonnement
#66 | 24th Nov 2011 @ 14:45
It is really new away to remark the info. There have lot of info about the seeking need. I realize its implementation very well. Billigste mobil abonnement
reply
Author: kens
#67 | 24th Nov 2011 @ 15:20
Ansel Adams: Eloquent Light features 40 photographs by the artist and runs from May 29 through November 7, 2010. Admission to the Carter is free.What is cloud Computing
reply
Author: investing for beginners
#68 | 24th Nov 2011 @ 15:24
Your ideas was a blessing. I was looking for this kind of article for my paper and I got here. Truly educational. Thank you so much
reply
Author: "la fil"
#69 | 24th Nov 2011 @ 17:56
It's hard, if you communicate with the person the other person dislikes, then you fall out of favor with them thanks. "la fil"
reply
Author: coche de alquiler
#70 | 25th Nov 2011 @ 10:05
Thank you truly for sharing a huge amount of powerful ideas.I will bookmark your web site and will be without a doubt coming back.Again, I appreciate all your work and supplying much priceless info for the many people
reply