Advanced front page will do the necessary regarding the front page (from various places as well i think), and for the jquery, i guess you could maybe bind a lightbox to onload? (im guessing, never done it dont know if its possible.)<br>
<br><div class="gmail_quote">On Wed, Jun 10, 2009 at 8:32 PM, Fred Jones <span dir="ltr"><<a href="mailto:fredthejonester@gmail.com">fredthejonester@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">> I was wondering how to create a situation whereby a first-time visitor would<br>
> see the website overlayed by a "jQuery/Lightbox-esque" modal window warning<br>
> them that the site contains adult language, and that they could then click<br>
> "I understand" or something to make it go away.<br>
><br>
> I don't want to use a separate page to do this (ala, the 'Front Page'<br>
> module).<br>
<br>
</div>It sounds like you would need to store a cookie if you only want<br>
"first time visitors" to see this message. Furthermore, it sounds like<br>
the front page is not the only candidate for this feature, because<br>
visitors may well enter your site from other URLs, from Google or from<br>
other sites which link to internal pages on yours.<br>
<br>
If the above is correct, then it sounds like you would need custom<br>
jQuery code which would run on every page. It would look for the<br>
existence (and value) of that cookie and then based on that, decide<br>
whether or not to show the message.<br>
<br>
And of course when the users clicks that he understands, the jQuery<br>
would set the cookie.<br>
<br>
That's my first thoughts anyhow.<br>
<div><div></div><div class="h5">--<br>
[ Drupal support list | <a href="http://lists.drupal.org/" target="_blank">http://lists.drupal.org/</a> ]<br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>-- <br>--<br>Steve Power<br>Principal Consultant<br>Mobile: +44 (0) 7747 027 243<br>Initsix Technology and Media<br>--<br>