March 2013

14 articles in March 2013

Complete html code :— save this file to “pop.html” ####################### <script src=”http://code.jquery.com/jquery-1.9.1.js”></script><script> $(document).ready(function(){ var doit    = true; var alertmsg = null; $(function() { alertmsg =”Are you sure you want to leave?nnStay on this page to try our services.”; window.onbeforeunload = …

Read more →

<?php define(‘MYSQL_HOST’,’localhost’); define(‘MYSQL_USER’,’bp6am’); define(‘MYSQL_PASSWORD’,’bp6ampass’); define(‘MYSQL_DB’,’comicbook_fansite’); ?>     <?php session_start(); include ‘db.inc.php’; $db = mysql_connect(MYSQL_HOST, MYSQL_USER, MYSQL_PASSWORD) or die (‘Unable to connect. Check your connection parameters.’); mysql_select_db(MYSQL_DB, $db) or die(mysql_error($db)); $hobbies_list = array(‘Computers’, ‘Dancing’, ‘Exercise’, ‘Flying’, ‘Golfing’, ‘Hunting’, ‘Internet’, ‘Reading’, …

Read more →

1 ) Create a new file Download.php and keep this in image folder where all image are placed after uploading…. ****************************************************************************************************************** <?php // Force download of image file specified in URL query string and which // is in the same …

Read more →

create a horizontal-1.php ************************************ <?php if ( is_active_sidebar( ‘horizontal-1’ ) ) : ?> <div role=”complementary”> <?php dynamic_sidebar( ‘horizontal-1’ ); ?> </div><!– .widget-area –> <?php endif; ?> then add this line to function.php ****************************************** add_action( ‘after_setup_theme’, ‘child_theme_setup’ ); if ( !function_exists( …

Read more →

CSS CODE :- /** * CSS image crop. Forces image to 4:3 aspect ratio cropping at the middle. */ .img-crop, .img-crop img{ width: 100%; /* gotta be responsive these days */ } .img-crop{ background-color: #ededed; /* some background color for …

Read more →

JAVASCRIPT : ——————————————————————————- $(document).ready(function() { var id = ‘#dialog’; //Get the screen height and width var maskHeight = $(document).height(); var maskWidth = $(window).width(); //Set heigth and width to mask to fill up the whole screen $(‘#mask’).css({ ‘width’: maskWidth, ‘height’: maskHeight }); …

Read more →