Website Toolbox Pro

How Can I Submit My Blog Into Google Web Master Tool?

Meta Tags Comments »
I have sumbitted my blog in Google Webmaster Tools, but its asking to verify my home through a meta tag or a HTML file. How can I upload these files (sitemap.xml, robots.txt and meta tag or HTML file verification)?
You can verify your blog with Google Webmaster Tools by putting the metatag they want you to use.

Go to your site layout or blog template, go to the HTML edit section and put the tag between <head> and </head> tags.

How To Enable Javascript?

Javascript Comments »
Can you tell me how to enable javascript? All of a sudden, AIM chat says I must enable javascript to enter chat.

Continue reading How To Enable Javascript? »

Why Won’t My IMG Load?

Images Comments »
I’m doing a project for school basicly making a website and I did the command
<img src="fruit-salad.jpg">

But when I save, it shows an X in the corner. Can you help?

The path to the image is incorrect…

Instead of using a relative path (ie: fruit-salad.jpg) try using an absolute path (ie: http://www.thedomain.com/images/fruit-salad.jpg)

Picture Change On Click Without Javascript

Images, Javascript Comments »
Do you know how to make a picture change when you click it, and then change back when you click it again? Preferably without Javascript if possible.
You can’t do something like that without Javascript. A mouse click is an event, and there is no way to process events but with Javascript. Use the onclick property of the img, div or a tag.

How Can I Declare A Global Variable Inside A Javascript Function?

Javascript Comments »
Is it possible to declare a global variable inside a javascript function?
If you create any variable inside a function, its scope will be local to that function only and not global. Declare your variable outside the function.

How Do I Update Select Options From Javascript?

Javascript, Meta Tags Comments »
I want to change the available list in the <select> drop-down menu using a pre-defined array in javascript.

Continue reading How Do I Update Select Options From Javascript? »

How Can I Use Javascript To Check If The Value Of A Text Box Has Been Deleted ?

Javascript Comments »
How Can I Use Javascript To Check If The Value Of A Text Box Has Been Deleted?
Look up the onchange() event. That should point you in the right direction.

Struggling With Perl Regular Expression

Regular Expressions Comments »
I have a series of words followed by a pre-determined marker (say the letter x in this case) contained in a string.

$contents = 'test1x     test!x     test2x';

There is a need to extract a list of those words that contain only alphanumeric characters plus the marker, ‘x’. So obviously “test!x” not wanted.

If I run the following regex:

@filtered_list =
(
  $contents =~  /(?:[\w]+) /g
);

Then I get the following list returned:

("test1x", "x", "test2x")

as opposed to a required list of

("test1x", "test2x")

The problem is with the 2nd item – it fails on the character “!” and just moves on to the next character when I really want to just stop right there and not return anything for this word.

I know I am just not seeing something completely obvious…

Thank you.

Continue reading Struggling With Perl Regular Expression »

Are These Two Regex’s Equivalent?

Regular Expressions Comments »
These two regex’s should be equivalent, right?
abc.+d
abc..*d
Yes.

Test your regular expressions with the Regular Expression Creator.

How To Make Google Crawl And Index My Images Folder?

Images, SEO Comments »
Perhaps I should put a sitemap.xml file in there or robot.txt, or put an index.html with listed links to each image in the folder?
Please tell me :)
That’s right, you should either create a sitemap file, such as sitemap.xml, using the sitemap format, and submit it to Google, or simply create an HTML file with listed links to each image. Don’t forget to link to that HTML file from somewhere on your site, so that Google could find it out.