index - <? $ProFolio_Version = 1.05;

Info iconThis preview shows pages 1–4. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: <? $ProFolio_Version = 1.05; include("config.php"); include("functions.php"); if(file_exists("upgrade.php")){ $red = "Location: upgrade.php"; header($red); } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>ProFolio of <? echo ucwords($sitename); ?></title> <? include("style.css.php"); ?> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js" type="text/javascript"></script> <script type="text/javascript"> $(window).bind("load",function(){ <? if($ok != 1){ ?> $(".left_column").fadeIn(1000); //Show Home Box when page loads focusCurrent("div.side_links a","div#box1"); <? } ?> //Clicking On Links - Fade Out All .main Divs, delay everything for 500 ms, Fade Links to half opacity, Fade In Current Link, Fade In Current Content Box var fadeable = 1; function hidePlinks(){ $("div.side_links_mini").slideUp("slow").dequeue() } function fadeMains(){ $("div.main").fadeOut("slow").fadeTo(550, 1) $(".reply").css("display", "none") } function fadeSideLinks(){ $("div.side_links a").fadeTo(250, .5).dequeue() } function focusCurrent(l,b){ $(l).fadeTo(250, 1).dequeue() $(b).fadeIn("slow", function(){ fadeable = 1; }) } function fadeIcons(){ $("div.icon_holder").fadeTo(250, .75); } function showPage(l, p){ if(fadeable == 1){ fadeable = 0; $(this).dequeue() fadeMains() hidePlinks() fadeSideLinks() focusCurrent(l, p) } } function showPanel(p){ $(this).dequeue() fadeMains() hidePlinks() fadeSideLinks() $(p).fadeIn("slow"); } $("a#link1").click(function(){ showPage("div.side_links a","div#box1") }) $("a#link2").click(function(){ showPage("a#link2","div#box2") $("div.side_links_mini").slideDown("slow") }) $("a#link3").click(function(){ showPage("a#link3","div#box3") }) $("a#link4").click(function(){ showPage("a#link4","div#box4") }) $("div.login").fadeTo(1000, .65); $("div.login").hover( function(){ $(this).fadeTo(200, 1).dequeue(); }, function(){ $(this).fadeTo(200, .65).dequeue(); } ); //Portfolio Subs <? $under_link_query = mysql_query("SELECT DISTINCT(type), type FROM ". $prefix."ProFolio_work"); while($u_row = mysql_fetch_assoc($under_link_query)){ $type = html_entity_decode($u_row['type']); ?> $("a#link_<? echo str_replace(' ', '_', $type); ? >").click(function(){ if(fadeable == 1){ fadeable = 0; $(this).dequeue() fadeMains() fadeSideLinks() fadeIcons() focusCurrent("a#link_<? echo str_replace(' ', '_', $type); ?>","div#box_<? echo str_replace(' ', '_', $type); ?>"); } }) <? } ?> $("div.icon_holder").mouseover(function(){ $(this).fadeTo(150, 1).dequeue() }) $("div.icon_holder").mouseout(function(){ $(this).fadeTo(300, .75).dequeue() }) //Add To Portfolio <? if($show_add == 1){ ?> $(".reply").css("display", "block"); <? if($ok == 0){ ?> showPanel("div#box_add") <? } ?> <? } ?> $("a#link_add").click(function(){ showPanel("div#box_add") }) //Change Customization Options...
View Full Document

Page1 / 13

index - <? $ProFolio_Version = 1.05;

This preview shows document pages 1 - 4. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online