Welcome to the Browser-Base Game Zone forums!
oh ok woops sorry. it's kinda early...Code: [Select]$(document).ready(function () { $('a.mainpage').click(function (e) { e.preventDefault(); $('#reusepanel').load('main/tos.php #tos', function () { $('#reusepanel').fadeIn(); }); }); });and the part that's supposed to be working with it :/Code: [Select]<a href="#" class="link" id="tos"> --Terms of Use Agreement-- </a>I've also tried to do a <a href="javascript:function(){};" class="link" id="tos"> --Terms of Use Agreement-- </a>
$(document).ready(function () { $('a.mainpage').click(function (e) { e.preventDefault(); $('#reusepanel').load('main/tos.php #tos', function () { $('#reusepanel').fadeIn(); }); }); });
<a href="#" class="link" id="tos"> --Terms of Use Agreement-- </a>
$(document).ready(function () { $('#tos').click(function (e) { e.preventDefault(); $('#reusepanel').load('main/tos.php', function () { $('#reusepanel').fadeIn(); }); }); });<a href="#" class="link" id="tos"> --Terms of Use Agreement-- </a>
I can send you pics of my cocks if you want reference.
That's what I though at first, but the link he pasted is used in the load() function so and the a.mainpage probably does exist, just somewhere else
reusepanel{ position:absolute; z-index: 500; border: 7px solid #FFF; top: 200px; left:150px; width:650px; height:450px; overflow:auto; padding:10px; font-size: medium; background-color: #030a0a; color: #FFF; }
@charset "utf-8";/* CSS Document */body{ font-size: medium; background-color: #030a0a; color: #FFF; } a:link { text-decoration: none; color: #FFF} a:visited {text-decoration: none} a:active {text-decoration: none} a:hover{color:#f50505;} reusepanel{ position:absolute; z-index: 500; border: 7px solid #FFF; top: 200px; left:150px; width:650px; height:450px; overflow:auto; padding:10px; font-size: medium; background-color: #030a0a; color: #FFF; }
reusepanel{
edit: and i'm trying to do the little hover over div thing i see so much in other sites :/ i wanted to do it to make it simpler on people, b/c after i got this one figured out, i was going to do the same with stats, and also the login page.
Code: [Select]reusepanel{This line should be #reusepanel, as Nox pointed out.Quote from: 133794m3r on February 13, 2010, 07:10:31 AMedit: and i'm trying to do the little hover over div thing i see so much in other sites :/ i wanted to do it to make it simpler on people, b/c after i got this one figured out, i was going to do the same with stats, and also the login page.Don't reinvent the wheel. Pick one of these: http://planetozh.com/projects/lightbox-clones/ In the upper right, check jQuery and "Can fetch content via AJAX", and never select Thickbox (it's unreliable). I just started using ColorBox last night after poking through this list for a few minutes and it's perfect for my needs, I didn't have to write any custom code at all.