Sunday, April 25, 2010

How to add a link to your image using HTML

Here is a step by step on how to make an image link in HTML.

1.) Open your web page using your HTML editor.

2.) Find the image on your page that you want to make linkable.

3.) Add the code that is highlighted in orange to your image tag.

     <a href="http://yourURL"><img src="yourImage" alt="imageDescription" /></a>

4.) Replace "yourURL" with the location of where you want your image to link to.

5.) To make your image link to another web page and make that web page open in a new tab in the browser you can add the following to the link.

                 <a href="http://yourURL" target="_blank"><img src="yourImage"                   alt="imageDescription" /></a>

Thursday, April 15, 2010

YouTube not working in Opera 10.51 Part 2

Just over a month ago I posted a solution to the YouTube videos not working in the new Opera 10.51 browser. That solution seemed to work up until today, when for whatever unknown reason YouTube videos played on the YouTube page would not work in Opera.

Again I searched the My Opera Community Forums for a Solution. I did end up finding a fix that worked for me on a post from user lewisje:

Here is the forum thread with the solution:

This solution worked for me but it does seem more like a work around then a true solution, but it does work, so in the end it doesn't really matter.

On a possitive note, according to a  twitter post from the Opera software people, it appears that they are aware of the problem and they are working on a solution. This is good news and hopefully we will have a better solution then this one in the near future.... is what I did to get YouTube videos to play in Opera 10.51...and again thanks to lewisje for sharing this solution.

How to fix the YouTube videos not playing problem in Opera 10.51:

1.) Go to and copy the displayed text or save the  .js file to your desktop. If you copied the displayed text, just paste it into any text editor such as Notepad and save the file as "YoutubeProtectionRemover.js....

Just in case the above link to the .js file breaks, here is the JavaScript code that you will need:

// ==UserScript==
// @name YoutubeProtectionRemover
// @include*
// @description Removes lame protection on YouTube
// @copyright 2010, Snap
// ==/UserScript==
window.opera.addEventListener('BeforeScript',function(ev){ev.element.text=ev.element.text.replace("yt.flash.update(swfConfig, forceUpdate);","");},false);

2.) In Opera  go to "Settings" then go to "Preferences". Under Preferences, click the "Advanced" tab. On the "Advanced" tab you will see a list of sub menu items along the left hand side, find "Content" and click on it.

3.) Once in the "Content" section you will see a "JavaScript Options" button, click on it and go to the bottom of the dialogue box and make note of the file location of your JavaScript folder for Opera. If the field is blank then you will have to create a JavaScript folder.

4.) To create a JavaScript folder just use Windows explorer and create a folder anywhere on your computer and name the folder anything you like (but just try to avoid spaces and special characters). For me I created a folder called "JavaScript" and I created it in my "Program Files (x86)\Opera\" directory. Wherever you create this folder just make note of where it is. After you created your JavaScript folder go back to Opera go to the JavaScript Options menu (located in Preferences - Advanced - Content - JavaScript Options) and select Choose under the "User JavaScript folder" and navigate to the JavaScript folder that you just created. Click "OK" and click OK again.

5.) Go back into Opera and close any and all open tabs and again go back into "Preferences" and choose "Advanced" and then select "Cookies". On the "Cookies" menu click on the "Manage Cookies" button. This will open the "Cookie Manager" window. Do a search for "YouTube" and delete all the cookies that appear. Click "Close" and then "OK".

6.) Shut down Opera

7.) Next take the "YoutubeProtectionRemover.js" file that we created in an earlier step and place it in the JavaScript folder that Opera uses for User JavaScript files (see steps 3 & 4).

8.) Reboot Opera and navigate to YouTube and with any luck the videos should work. If not try restarting Opera a couple of times. Failing that try setting the site mask as Internet Explorer.

To set Opera to mask as Internet Explore for YouTube right click on the YouTube page and select "Edit Site Preferences", then choose "Network". Then under "Browser identification" select "Mask as Internet Explorer), delete all the YouTube cookies and restart Opera.