Wednesday, February 25, 2009

how to use br to reduce the space in css

on your code editor ( dreamweaver or notepad);

1. type 

.shortentbrclasshere br {
height40%;
}


2.save it as a .css file
3. Remember to link your css to your html file.
4.Apply the 'br' tag on your reference need to your html.
etc;
dummy dummy dummy
 dummy dummy dummy


good luck ;)



Friday, February 20, 2009

How to build TOC navigation

1) Paste the whole code, and fill it into <head> to </head> in your html
code 1


2) Paste the whole code (code 2), and fill it into your <body> section
code 2


Create Navigation menu effect : follow the mouse

A sleek animation effect using tabs for a slide navigation bar. Degrades very nicely when JavaScript is turned-off.

1) Paste the following code below into the CSS section of your HTML

Thursday, February 19, 2009

How to change search button to your reference image?

1- Simply replace the button with the code below:


2-You done

Tuesday, February 17, 2009

Watermark background image with javascript

1) Copy the whole script 1( on below) and paste it into <body> the html

2) Change the image directory according to your own reference. Like you see here, im using 'http://farm1.static.flickr.com/70/168958721_f4aab2b479_o.jpg' simply chage this path

Script 1 (paste the whole code between into the <body>

fdfdfdf

Monday, February 16, 2009

How to create a simple dynamic calendar

1) Copy the whole script 1( on below) and paste it between <meta> to </body> on your main html (via your text editor).

2) Copy the whole script 2( under script 1) to your text or html editor and save as 'simplecalendar.js'.

3) Save the 'simplecalendar.js' to the same path as your main html. ( or you can save it on your own path/directory)

4) You are done!

Script 1 (paste the whole code between <meta> to </body> in your main html)


Script 2 (simplecalendar.js)

How to create API drawing in flash

API Drawing

Flash MX comes with a wide range of new features. On of these new features if the "API Drawing" ability. This means you can start off with a completly blank stage and have your script do the drawing at runtime. In this tutorial I will teach you how to make the above drawing application using API. I expect you to be able to use and have a strong knowledge in actionscripting.

Tutorial

1) create a new movie and select the first frame. Open the actionscript window so your ready to enter code. first you will enter the code to create a movie clip.

createEmptyMovieClip("myClip",1);

2) Now you will set the thickness, colour, and alpha value of the line. The colour is a hexadecimal value, and the alpha is a value between 1 and 100.

myClip.lineStyle(1,0x000000,100);

3) This following code will actualy draw the line when you put you click your mouse button.

onMouseDown = function () {
myClip.moveTo(_xmouse, _ymouse);
onMouseMove = function () { myClip.lineTo(_xmouse, _ymouse);};
};
onMouseUp=function(){
onMouseMove=null;
}

The function "onMouseDown" activates when you click your mouse button. it then moves the mouse to the starting point of your line, which will be directly under where you clicked. "onMouseMove" draws a line to your mouse using the lineTo() action. "onMouseMove" is used as aposed to "onEnterFrame" because it is only active when the user is moving there mouse. The last function "turns off" the "onMouseMove" function so that the line will not be drawn agian until the user clicks the mouse button agian.

All this code is to be entered into the first frame of your movie clip in the sequence that is displayed here.

source : www.bezzanet.zzn.com

How to create a Contact Flash Form

Step 1
Open a new document in flash. Set the document dimensions what ever you like. Select first frame in the time line open the

Action Script Panel (F9), and paste this script:
stop();

------------------------------------------------------------------

Step 2
Select the second frame and insert keyframe and in the script paste this:

stop();

------------------------------------------------------------------
Step 3

Select the Text Tool in the left dialog box or just press „T“ key. Set the text tool properties to values lilke this :


------------------------------------------------------------------
Step 4

Make 4 of input text fields like it is shown in picture below:



Note: for the second input field set the „var“ value to „subject“, for the third set „var“ „message“ and for the fourth „email“

------------------------------------------------------------------
Step 5

Write the field names like this: (you can just write it)


------------------------------------------------------------------
Step 6

Now make,in the same layer, in the same frame, 2 buttons like in the picture above. Select the send button and press F9 and add this script :

on (release) {
if (name eq "" or subject eq "" or message eq "" or email eq "") {
stop();
} else {
loadVariablesNum("form.php", 0, "POST");
gotoAndStop(2);
}
}

Now select the clear button and press F9 and add this script inside :

on (release) {
name = "";
subject="";
message="";
email="";
}

------------------------------------------------------------------
Step 7

Now select second frame in the timeline, and in the middle of stage write „Thanks, mail sent“
Save the file and name it form.fla and Go to File->Export and export the movie form.swf

------------------------------------------------------------------
Step 8

Open Macromedia Dreamweaver or any text editor (notepad).
Open a new file, name it form.php and write folowing code:

your_email@email.com";
$msg = "$name\n\n";
$msg .= "$message\n\n";

mail($to, $subject, $msg, "Message From: Online client\nReply-To: $email\n");

?>

------------------------------------------------------------------
Step 9

Save the file as form.php. Make sure that you saved your php file in the same folder as your form.swf file.

We're done!

Saturday, February 14, 2009

Using the keyboard with Google Chrome

Google Chrome was released in beta today (Tuesday, September 2). This is Google’s browser, currently only for Windows, and its arrival rekindles the browser wars into a three-way race between Mozilla’s Firefox, Microsoft’s Internet Explorer, and now Google’s Chrome.

Chrome offers much faster loading speed and more stability as its main differentiators, but also a new feature called an “incognito session” (which we’ll cover later today), plus the ability to quickly use web sites (such as Gmail) as applications on your desktop and Start menu.

The majority of the Firefox keyboard shortcuts we’ve covered here previously do work in Chrome. There are a few exceptions, which I’ve outlined below.

Here’s what works:

All in all, I’m pretty pleased with the keyboard control of Chrome, but there’s a lot of room for improvement in this beta:

  • There’s no apparent way to open the “Control the current page” and “Customize and control Google Chrome” dropdown menu icons in the upper right, except by clicking.
  • In a very serious breach of Windows usability, the F1 key does nothing at all instead of calling up help.
  • The list of keyboard shortcuts in their help is very incomplete.
  • Ctrl+S does nothing instead of saving the current web page, although you can right-click (even with Shift+F10) and choose “Save as” from the shortcut menu.
  • At least one keyboard command, Ctrl+O to open a file, has no listing anywhere on any menu. (All keyboard shortcut commands should have toolbar icons or menu entries as equivalents, and those icons or commands should always list the keyboard shortcut as a visual reminder.)
  • When Chrome offers to save a password when you log in to a site, there’s no keyboard method to say yes or no — you have to click on one of the buttons that appear.
  • You can’t navigate your saved bookmarks in a menu to select a site as you can with Firefox’s bookmark menu. (In Chrome, you can only click on the bookmark toolbar under “Other bookmarks” or search bookmarks in the omnibox using Ctrl+L and typing in a few letters from the bookmark.)

Here are some of the Firefox keyboard commands that do NOT work in Chrome:

Thursday, February 12, 2009

How to create popup window with javascript

Insert and copy the following code to the link area

Instruction:
Change the directory name etc: 'myfile/myfile.htm' follows by your file and  directory name.



hope it help.
Good luck

How to create 'back to previous page' script?

How to enable 'back to previosu page on your site? the function shown below practically multi-purpose, simple and the most friendly 

Copy and paste this code into your HTML where you would like the button to appear ( the selected area you wanna insert the button):


Its simple, and help your visitor to navigate your site easily .

Good luck

Overview of Macromedia Flash and database integration

Introduction
A Macromedia Flash movie cannot communicate directly with a database. However, Macromedia Flash movies can "talk" to server-side applications (also referred to as "middleware"). Middleware can query a database and relay data back and forth. There are many server applications available. Some of the most common are CGI, ASP, PHP, ColdFusion and Tango.

Integrating a Flash movie with a database on a server is the key to creating rich, platform-independent web applications. For this process to work, a developer must know many aspects of web application building - including Flash design, ActionScript, writing server scripts, and administering a database. The workload for creating this kind of delivery tends to fall on one person, and requires manual updating when necessary.


Macromedia Flash is a vehicle
For the purpose of this topic, it's best to think of a Macromedia Flash movie as a vehicle for gathering and displaying data. The Flash movie is similar to an HTML-based form in the way that it captures and forwards information. Learning how to use a database with Flash requires a knowledge of how to create a form in Flash. Please follow the links at the end of this TechNote for more information.

Additionally, using a database for the web requires specific knowledge of databases, server applications, server scripting languages and areas that are beyond the scope of this TechNote. Consult your Internet Service Provider (ISP) or server administrator with any questions you may have about your configuration.

Typically, databases that are used for web purposes include Oracle, Microsoft MSSQL and Access, FileMaker, MySQL, FoxPro and Sybase. These databases all use various protocols that work with server middleware. Some are meant for enterprise-level sites, while others are best suited for low-traffic sites.Some common uses for Flash and database interaction include:

-Dynamic content
-Guestbooks
-Password protection
-E-commerce
-Web application building
-Saving the state of a movie
-Personalization


Examples of Macromedia Flash and database communicationFlash form data can be inserted into a database:

On the simplest level, a Macromedia Flash form can take in user data via editable text fields. The Load Variables or GetURL actions can send the data (GET or POST) to the middleware, which will compose the data into the correct format that the database requires.

Thursday, February 5, 2009

All you need to know about buying a house

Recently, I'm working on updating the layout table (for user usability) and information for :
Process Flow of Property Acquisition & Home Loan Application (Malaysia)

Do you know what may involved when you purchase a property?
This is the complete guides of thing that you must know.
Simply point your URL here >

May fortune favor us

we had a company CNY lunch at one chinese restaurant near our Office, in Damansara. May fortune favor to those work on it. Happy new year guys..

Tuesday, February 3, 2009

How to play FLV file in your Powerpoint


How to play FLV file in your Powerpoint, Please read on the following steps.

1) Get the latest VLC media player on http://www.videolan.org/vlc/  
Download and install it to your pc

2) Download FLV via a popular video host site, like youtube, save it to your pc, and dont forget change the extension file to .flv .etc ;  'yourfile.flv'

3) Go to your Powerpoint, and start searching for  hidden control toolbox.

Click Office button > PowerPoint Options > Popular  > and pls tick  "Show Developer tab in the Ribbon".

4) Click "Developer (where? horizontally aligned with 'home' button), next, you need to click the icon "More Controls" which is displayed as hummer and wrench in the 'Controls' section. 

5) Upon the prompt-up dialog box,pls  select "VideoLAN VLC ActiveX Plugin v1/v2"


6) Once it done, back to your Powerpoint, and click the position for where you want the shape is displayed, use your mouse to resize as you prefer.

7) Go to Properties tab ( by right click the area you drew) , and complete the value of attribute "MRL" with the directory path of the FLV file, , etc:  D:\video\yourfile.flv, close the tab when finished. 

8) You are done! the FLV file is ready to play in your Powerpoint on your pc.

Good luck!

How to called PDF from flash?

How to called the (multi) PDF file from your flash?


Its so simple.
If you are Flash designer or programmer, you supposely familiar with getURL command.

etc :
on(release){
getURL("yourdirectory/yourpdf.pdf",'blank');
;

For beginner:
1) Create a button with Flash
2) Once it done, highlight the button, and press F9 (keyboard)
3) Upon the actionscript box prompt-up, add the following command (as mentioned on above) 
4) Publish it (control+enter or shift+F12 to published via internet browser)
5) You are done! 

Good luck
(Take noted,  that the following url command is 2.0 version)

Gong xi fa cai

Happy Chinese New year to all Chinese comrades, and people around the world :)