• Gear
  • Shots
  • Photo Craft
  • Video
  • Wide Angle
  • Support
  • New Stuff
  • More
Support SmugMug Support Bug Reporting Traditional view: all thumb img tags have same CSS ID

FAQtoid

Ever wanted to create an Avatar? Creating an Avatar!

Searching Dgrin with Google Searching with Google

Dgrin Challenges

Congratulations to the Winner of DSS #128 (Sunrise or Sunset), ShootingStar.

The next Dgrin Challenge DSS #129 (Silhouette Revisited ) is open for entries through May 27th, 2013 at 8:00pm PDT.

As always, we look forward to your participation but please do take a moment to read through the rules before posting your entry.

Past DSS Challenge Winners, DSS Challenge Rules, and other important DSS Challenge information is here.

Need some help with Accessories?

Tutorials

Ever find yourself wondering just how someone managed to create an image using different effects?

Here are three simple tutorials we hope will encourage you to try something new.

The Hot Seat

A lifelong interest in landscape photography has led Eyal Oren to make a study of his adopted hometown of Marblehead, MA. As you can see, his dedication is paying off!

Africa!

Dgrinners Harryb, Pathfinder, and others joined Andy Williams and Marc Muench on Safari in East Africa recently. Here are some awesome threads to check out!

 
Thread Tools Display Modes
Old Jul-22-2009, 12:22 AM
#1
jfriend is offline jfriend OP
Scripting dude-volunteer
Traditional view: all thumb img tags have same CSS ID
In the Traditional view, every thumb's img tag has the same CSS ID id="mainPhoto". Shouldn't there should only be one object in the page with a given CSS id?

A typical thumb from the Traditional view looks like this (see the red part which is the same for every thumb):

<div class="photo" id="photoBox_2" onmouseover="cyclePhotos(2);">
<div style="position: relative; width: 100px; height: 66px; margin: 0 auto;">
<a href="/gallery/5608869_vwzCG/1/344292111_SvSfK/Medium" class="photoLink">
<img class="imgBorder" name="mainPhoto" id="mainPhoto" alt="John Friend &gt; Landscapes &gt; JLF_2920" title="John Friend &gt; Landscapes &gt; JLF_2920" border="0" src="http://jfriend.smugmug.com/photos/344292111_SvSfK-Ti.jpg" width="100" height="66" hspace="0" vspace="0" onmousedown="pickPhoto(this,event);" />
</a></div> </div>
__________________
--John
HomepagePopular
JFriend's javascript customizationsSecrets for getting fast answers on Dgrin
Always include a link to your site when posting a question
Old Jul-22-2009, 05:21 AM
#2
bwg is offline bwg
SmugMug Sorcerer
bwg's Avatar
Quote:
Originally Posted by jfriend
In the Traditional view, every thumb's img tag has the same CSS ID id="mainPhoto". Shouldn't there should only be one object in the page with a given CSS id?

A typical thumb from the Traditional view looks like this (see the red part which is the same for every thumb):

<div class="photo" id="photoBox_2" onmouseover="cyclePhotos(2);">
<div style="position: relative; width: 100px; height: 66px; margin: 0 auto;">
<a href="/gallery/5608869_vwzCG/1/344292111_SvSfK/Medium" class="photoLink">
<img class="imgBorder" name="mainPhoto" id="mainPhoto" alt="John Friend &gt; Landscapes &gt; JLF_2920" title="John Friend &gt; Landscapes &gt; JLF_2920" border="0" src="http://jfriend.smugmug.com/photos/344292111_SvSfK-Ti.jpg" width="100" height="66" hspace="0" vspace="0" onmousedown="pickPhoto(this,event);" />
</a></div> </div>
hang tight John, won't be an issue much longer.
__________________
Pedal faster
Old Jul-22-2009, 08:37 AM
#3
jfriend is offline jfriend OP
Scripting dude-volunteer
Quote:
Originally Posted by bigwebguy
hang tight John, won't be an issue much longer.
Thanks. Not a big deal, just wanted to report it so it could get fixed eventually.
__________________
--John
HomepagePopular
JFriend's javascript customizationsSecrets for getting fast answers on Dgrin
Always include a link to your site when posting a question
Tell The World!  

Thread Tools
Display Modes

Posting Rules  
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump