Category Archives: Code

BATCH ASCII ART – How To Example

[Archive from my old blog]
Tuesday, December 16, 2008

BATCH ASCII ART – How To Example

Please note the will look better when run in a command window or MSDOS.

ECHO ..::””::..
ECHO .;” “;.
ECHO :: :: :: ::
ECHO :: :: :: ::
ECHO :: .:’ :: :: `:. ::
ECHO :: : : ::
ECHO :: `:. .:’ ::
ECHO `;..“::::”..;’
ECHO “::,,,,::”

Tip: Copy & Paste your ascii art into a file art.txt (Do NOT include the ECHO!)
Then use the “type” command in your batch script to display it.

Example:

@ECHO OFF
TITLE ASCII ART
TYPE art.txt
ECHO DON’T WORRY, BE HAPPY!
pause
exit

Supported Batch Colors

[Archive from my old Blog]
Tuesday, December 16, 2008

Supported Batch Colors

COLOR 0 = BLACK “will not work in the cmd window”
COLOR 1 = BLUE
COLOR 2 = GREEN
COLOR 3 = AQUA
COLOR 4 = RED
COLOR 5 = PURPLE
COLOR 6 = YELLOW
COLOR 7 = WHITE
COLOR 8 = GRAY
COLOR 9 = LIGHT BLUE
COLOR A = LIGHT GREEN
COLOR B = LIGHT AQUA
COLOR C = LIGHT RED
COLOR D = LIGHT PURPLE
COLOR E = LIGHT YELLOW
COLOR F = BRIGHT WHITE

Example:
COLOR F2
The first specifies the background color while the second the text.

How to Program Directly from the CMD or MSDOS Window!

[Archive from my old blog]
Tuesday, December 16, 2008

How to Program Directly from the CMD or MSDOS Window!

Did you know you can write and run batch scripts directly from the MSDOS or CMD Window?

Have a look at this screenshot. (Click for full view)

At the command prompt just enter “(” to start scripting and “)” when your done!

It’s that easy!

Just type everything out as if you were in Notepad.

Tip: To clear the source code from the screen before running the program use the “CLS” command.

CSS Java Free OnMouseOver

[Archive from my old blog]
Tuesday, December 16, 2008

CSS Java Free OnMouseOver
Thanks to some help from a friend Basik its complete!

Simple and NO JAVA!

Now I know it’s not perfect but if you can’t use java its better then nothing! Anyways you might be able to improve on it.

CSS Code:

.MouseOvr {
width:75px;
height:32px;
background: url(“”);
display:block;
}
.MouseOvr :link,
.MouseOvr :visited {
width:75px;
height:32px;
background: url(“”);
display:block;
}
.MouseOvr a:hover {
width:75px;
height:32px;
background: url(“http://www.google.ca/intl/en_ca/images/logo.gif”);
display:block;
}

.MouseOvr a:hover span {
visibility: hidden;
}

HTML: Add this anywhere in your page you want the link.

Code:

< h1 class=”MouseOvr”>
< a href=”http://google.ca”&gt;
Link
< /a>
< /h1>

Image Mouseover without java!

[Archive from my old Blog]
Tuesday, December 16, 2008

Image Mouseover without java!

I used to use a website that prohibited the use of any kind of java as well as iframes. It also was very limited in terms of using css because you could not access any of the raw html files and everything input into the site passed through a filter to prevent abuse. All I wanted was to have mouseovers! well I found a way on my own after having no luck in any web help forums – yeah I was just as surprised!

When I told people I wanted to have mouseovers with no css or java script they told me it wasn’t possible, well here is the code I made that worked 🙂

<IMG SRC=”images/image_1.gif” ALT=”Text Description” WIDTH=88 HEIGHT=42 border=”0″ id=”msg”
onmouseover=”document.getElementById(‘msg’).src=’rollovers/image_2.gif'” ALT=”Text Description” WIDTH=88 HEIGHT=42 border=”0″
onmouseout=”document.getElementById(‘msg’).src=’images/image_1.gif'” ALT=”Text Description” WIDTH=88 HEIGHT=42 border=”0″>

 

Update: Here is a shorter method I wrote up.

<img alt=”Image” src=”focus2.jpg” onMouseOver=”src=’focus1.jpg'” onMouseOut=”src=’focus2.jpg'”>