This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Archived TutorialClass.com - http://tutorialsclass.com/articles/tools-technology/javascript-tabs-without-jquery --> | |
<html> | |
<head> | |
<script type="text/javascript"> | |
function showtab(tabs) | |
{ | |
/* alert("entered to function"); */ | |
var tab=tabs; | |
switch(tab) //this switch case replaces the tabContent | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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>jQuery Tabs </title> | |
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.0/jquery.min.js"></script> | |
<style> | |
#tabs ul { padding-left:0px; } | |
#tabs ul li { display:inline-block; border:1px solid;} | |
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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>jQuery Tabs</title> | |
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.0/jquery.min.js"></script> | |
<script type="text/javascript"> | |
$(document).ready(function(){ | |
$('#tabs p').hide(); | |
$('#tabs p:first').show(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php session_start(); | |
// load WordPress environment | |
include_once('../../../wp-load.php'); | |
header("Pragma: no-cache"); | |
header('Content-type: application/json'); | |
?> | |
{ | |
"timeline": | |
<?php | |
/* $cat = $_REQUEST["cat"]; // better to use from session instead of url request */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Files wp-login.php> | |
Order Deny,Allow | |
Deny from all | |
Allow from 127.0.0.1 | |
</Files> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Following mouse hover fading not supported in ie because of opacity | |
jQuery('div#navwrap ul.nav li a').hover(function() { | |
jQuery(this).animate({opacity: .4}, "fast"); | |
}, function() { | |
jQuery(this).animate({opacity: 1}, "fast"); | |
}); | |
// Solution: Using css rather than animate, just change color that seems to faded color: | |
jQuery('div#navwrap ul.nav li a').hover(function() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$("#navwrap ul.nav li:hover a:last").css("color", "#ffffff"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// code to include in theme's functions.php | |
if( !is_admin()){ | |
wp_deregister_script('jquery'); | |
wp_register_script('jquery', ("http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"), false, '1.7.1'); | |
wp_enqueue_script('jquery'); | |
} | |
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Highlight/underline only direct anchor of class current_page_item */ | |
#nav1 li.current_page_item>a { text-decoration:underline; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
global $wp_query; | |
echo "<pre>"; | |
var_dump($wp_query->query_vars); | |
var_dump($wp_query); | |
echo "</pre>"; | |
?> |
OlderNewer