Archive

Posts Tagged ‘JavaScript’

Speed Up Your WordPress Blog >> 10 Ways

April 22, 2011 1 comment

If your site takes an age to load, in the words of Jeremy Clarkson, that’s not good. You don’t want to wear on your reader’s patience before they’ve even started reading.

In this post we’ll explore ten ways to speed up your site, with tricks ranging from easy to even easier; none of the stuff in this post is difficult, so there’s no excuse for a slow-loading blog after reading this!

1. Delete Any Unwanted Plugins

If your site is loading slowly, look at how many plugins you’re using. If the answer is more than ten, look at the plugins you’re using and ask yourself whether you can integrate them directly into your theme.

While you’re at it, also ask yourself whether you really need the plugin. If you can do without it, do.

2. Remove Unnecessary PHP Tags

If you’re using a theme that you didn’t make yourself, then chances are it’s full of php that doesn’t need to be there. For example, your header could have something like this:

This is telling WordPress to get the stylesheet url every single time someone loads your page. You can very easily replace this with something like this: (Remember to replaceyoursite.com with your address).

This is just one example – there are many many more times you can do this – have a hunt round your header.php and other theme files and you’ll be amazed at the number of unnecessary queries you can eliminate. We have a list of 13 of the most commonun-needed tags here.

3. Use WP Super Cache

One of the better known techniques for speeding up WordPress is to install the WP Super Cache plugin. It caches your site for super-quick loading. It’s as simple as that.Install it and forget about it (and then promptly remember it when you wonder why your design changes aren’t showing next time you edit your theme files!).

Read more…

How To Get the Uploaded File Information in the Receiving Script?

June 6, 2009 Leave a comment

Once the Web server received the uploaded file, it will call the PHP script specified in the form action attribute to process them. This receiving PHP script can get the uploaded file information through the predefined array called $_FILES. Uploaded file information is organized in $_FILES as a two-dimensional array as:
$_FILES[$fieldName]['name'] – The Original file name on the browser system.
$_FILES[$fieldName]['type'] – The file type determined by the browser.
$_FILES[$fieldName]['size'] – The Number of bytes of the file content.
$_FILES[$fieldName]['tmp_name'] – The temporary filename of the file in which the uploaded file was stored on the server.
$_FILES[$fieldName]['error'] – The error code associated with this file upload.

The $field Name is the name used in the(text box).
Categories: CSS, HTML, JavaScript, PHP Tags: , , ,

A simple Email Validation Form

June 5, 2009 3 comments

Here i use Javascripts And HTML.

Here The JavaScript Functionemail1 Which one is used for Validation.

function checkEmail(myForm) {
if (/^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/.test(myForm.emailAddr.value)){
return (true)
}
alert(“Invalid E-mail Address! Please re-enter.”)
return (false) }


email2

***You Can Download This Code In My Download Center…(Box)..

CSS Dropdown Menu

June 3, 2009 2 comments

Here i want to make a simple Drop down menu using CSS and Java Scripts.Several website need menu but Static menu link is not good enough.

For This concept i try to make some this.Drop Down Tabs is very simple, as the entire menu consist of regular HTML and styled using CSS.

Logically it makes sense to think of the menu in the following three parts :

1) HTML for the menu tabs

<div id=”bluemenu” class=”bluetabs”>
<ul>
<li><a href=”#”>Home</a></li>
<li><a href=”#” rel=”dropmenu1″>CSS</a></li>
<li><a href=”#” rel=”dropmenu2″>Partners</a></li>
<li><a href=”#”>Tools</a></li>
</ul>
</div>

2) HTML for drop down menu(s)

<!–1st drop down menu –>

<div id=”dropmenu1″ class=”dropmenudiv”>

<a href=”#”>CSS Drive</a>

<a href=”#”>JavaScript Kit</a>

<a href=”#”>Coding Forums</a>

<a href=”#”>JavaScript Reference</a>

</div>

3) Script to call following the HTML for both of the above to initialize a Tab Menu instance

<script>
//SYNTAX: tabdropdown.init(“menu_id”, [integer OR "auto"])
tabdropdown.init(“bluemenu“, 0)
</script>

The Project images…………..

menuemenue2

Simple Image Uploader

June 2, 2009 1 comment

I have created a cool contact directory and i want to allow people to upload their own photos, or i want to create an image repository which you upload images and create thumbnails out of them.

This is a simle image upload project.Here i use HTML & PHP 4.One day my friend sabuz give me the idea.Basically he done most of the work.Here my contribute was shown the Image in Browser.And i have done this.I want to play again with this type of work.Here the Add picture,Show picture page example …

show imageaddimageshow image

Follow

Get every new post delivered to your Inbox.

Join 3,547 other followers

%d bloggers like this: