Spider trap

IS this code a spider trap? I call a simple js (not included here) which allows each of the 4 images to show 4 divs when clicked on.
I have put no follow on the links. Thanks

<div style="padding:0;margin:0;">
  <div class="simpleTabs" style="background: url('backform1.jpg') no-repeat;padding-top:19%;">
        <ul class="simpleTabsNavigation">
            <li><a href="#" rel="nofollow"><img src="img1.jpg" alt="" width="99" height="125" 
 
/></a></li>
 <li><a href="#" rel="nofollow"><img src="img2.jpg" alt="" width="99" height="125" /></a></li>
  <li><a href="#" rel="nofollow"><img src="img3.jpg" alt="" width="99" height="125" /></a></li>
   <li><a href="#" rel="nofollow"><img src="img4.jpg" alt="" width="99" height="125" /></a></li>
        </ul>
   
<div class="simpleTabsContent">Shown when "Tab 1"  clicked.</div>
<div class="simpleTabsContent">Shown when "Tab 2" clicked.</div>
<div class="simpleTabsContent">Shown when "Tab 3" clicked.</div>
<div class="simpleTabsContent">"Shown when Tab 4" clicked.</div>
    </div>

What’s a spider trap? Is it something a spider can’t get out of?

I wouldn’t worry about that code, the spider will just read it top to bottom, I believe.

You know, you don’t need to put nofollow on your ‘#’ links unless they’re actually leading somewhere.

There is nothing here that would give any spider a problem.

Thanks for the replies. The reason I am no following the links is because I don’t want the link text to be followed by the spiders as they don’t point anywhere but the home page.

Having this text in the divs doesn’t appear as hidden to the search engines?

No, the search engines do not render your page with a browser, do not execute your JavaScript or CSS, they only read your HTML source. From your HTML, you have 4 divs of content on a page. The contents of all 4 are considered part of the page.

I just tried the page in Lynx text browser, and the divs are showing fine.

Just remember that they will try and follow links (including relative ones) they find in on-page JavaScript (for discovery - no link equity attribution is passed)…