作者归档

New ways to embed swf (falsh) into html website

Preparing your website to handle the Microsoft changes to Internet Explorer

Note: On November 8, 2007, Microsoft announced that, as a result of recent technology licenses acquisitions, the “click to activate” restrictions are no longer mandatory. Microsoft plans to remove the activation behavior from Internet Explorer in April 2008. Microsoft has indicated that developers will not need to make any modifications to existing websites; controls will function as they did before the activation change was made in April 2006. For the latest information about the update and information about preview releases, please read the Microsoft Developer Network article, Information for developers about Internet Explorer. The article on this page will remain until Microsoft implements the changes to Internet Explorer.

Many of you have heard about the announced changes to Microsoft Internet Explorer. You may have questions about what’s going to happen to your websites that use embedded (“active”) content and applications—which can include Adobe Flash, Adobe Acrobat, or Shockwave files. This article details the browser changes, active content workarounds, and resources you will need to make your websites compatible with the updated browser.

This article covers the following:

  • How the changes affect current sites
  • What code is affected and the general fix
  • Two sample solutions of updated content
  • Additional resources for updating active content

The Dreamweaver 8.0.2 Updater and Flash Active Content Update Extension include templates and code for publishing active content under the new guidelines. In addition, you can find more information in the Active Content Developer Center.

How will the browser changes affect my site?

Users will be able to view embedded content and applications in their present form—until they update their Internet Explorer browsers on Windows. The browser update was first released as an optional update in February 2006. After users update the browser, they have to click embedded or “active” content before they interact with it. Check out the resources on the Microsoft Developer Network (MSDN), where you can get more information.

Some sites will not be affected by the change. The updated browser prompts users to click before displaying active content coded using <object> , <embed> , or <applet> tags that are inline in an HTML file. However, HTML pages that use tags generated by external script files (like JavaScript)—such as sites that use complex Flash detection scripts—should continue to work normally with no change.

Note: Even though many browsers still support all three tags, the <embed> and <applet> tags are deprecated in favor of the <object> tag.

Many of you will want to fix your sites to work around the mandatory browser changes. The good news is that you can apply one of several workarounds to your site right now.

Requirements

Sample files:

Note: This sample archive contains six files:

  • AC_RunActiveContent.js: This is the file you use for the workaround for Flash and Shockwave content described in External JavaScript Solution 2: For Multiple Occurrences of Embedded Content.
  • AC_ActiveX.js: Use this file for the fix described in the section, Solution for Other Active Content Types.
  • SampleActiveContent.html: This file provides an example of the code you would use in your HTML page when using the AC_RunActiveContent.js and AC_ActiveX.js files.
  • button1.fla: This file is the source file for the SWF.
  • button1.swf: This file is the SWF that is embedded in the page.
  • readme.txt: This is the Readme file that contains a description of the ZIP contents.

Getting started now: Fix for displaying active content

The HTML code affected by the change is anything that uses the <object> tag directly in the page. You will need to replace this tag with an external JavaScript file that writes the <object> tag from outside the actual HTML page.

Code you need to replace

Here’s an example of code (a simple <object> tag) that will not function as it did previously in the updated browser:

<object classid="clsid:D27CDB6E..." ... height="200">
    <param name="movie" value="foo.swf">
    <param name="quality" value="high" />
    <embed src="foo.swf" ... height="200"></embed>
</object>

If you replace this tag with a script that calls code outside of your HTML page, as described in the two following methods, it will continue to work in the updated version of Internet Explorer.

These examples of “before and after” code, provided by the Adobe development team, will help you update the HTML pages that host active content on your website.

We’ve tested this JavaScript fix; it works for common, current browsers. Check out the External JavaScript Solution Quality Assurance Test Matrix to see if it is a good solution for your site visitors.

External JavaScript solution 1: For single (or few) occurrences of embedded content

If your site has only one piece of embedded content, or only a few pieces, you may want to use the following simple solution. To implement this, you need to create a unique external JavaScript (JS) file for each page on your site that contains embedded content.

Note: If you have more than one piece of embedded content on a page, create unique functions (see Step 1) within the external JS file to document.write tags for each separate content piece. Also, please note that this solution is not included in the sample files; simply follow the instructions below to create the new code from code that exists in your current HTML page.

The steps to do this are as follows:

  1. Create and place the external JS file on your site. In this example, call it foo.js. This script needs to document.write the full <object>/<embed> tag that was previously in your HTML file:
    function RunFoo()
    {
       document.write('<object classid="clsid:D27CDB6E..." ... height="200">\n');
       document.write('<param name="movie" value="foo.swf" />\n');
       document.write('<param name="quality" value="high" />\n');
       document.write('<embed src="foo.swf" ... height="200"></embed>\n');
       document.write('</object>\n');
    }
  2. Add a JavaScript include statement that points to the JavaScript file from Step 1 to the <head> section of the web page that embeds the content:
    <script src="[path]/foo.js" type="text/javascript"></script>
  3. Replace each <object>, <embed>, or <applet> tag with a call to the appropriate external files as follows:
    <script type="text/javascript">RunFoo();</script>

External JavaScript solution 2: For multiple occurrences of embedded content

If your site has a lot of embedded active content, or if you embed it in multiple ways, this solution gives you some big advantages. You can use a single external JS file for all of your embedded Flash and Shockwave content, instead of creating one for each affected file (as in Solution 1). The JS file contains functions that embed your active content based on parameters it receives from the main page.

There are three steps you need to follow to implement this solution:

  1. Copy the external JS file that contains the workaround functions to a shared location on your website. Call it AC_RunActiveContent.js for this example, or other names that you choose.

    The code in the AC_RunActiveContent.js file uses arguments that you pass to it (see Step 3) to construct a complete tag string that it writes to your document.

  2. Add a JavaScript include statement that points to the shared JavaScript files from Step 1 to the <head> section of each web page on your site that includes an <object>/<embed> tag:
    <script src="[path]/AC_RunActiveContent.js" type="text/javascript"></script>
  3. Replace each instance of <object> and <embed> tags in your pages with the appropriate function calls. Here are two function calls for you to choose from: one for Flash content and one for Shockwave content.

    Flash content

    AC_FL_RunContent(
       "att1Name","att1Value",
       "att2Name","att2Value",
       ...
       "attnName","attnValue"
    );

    Shockwave content

    AC_SW_RunContent(
       "att1Name","att1Value",
       "att2Name","att2Value",
       ...
       "attnName","attnValue"
    );

    Note: These functions need JavaScript enabled to function. To let users with JavaScript disabled in their browsers view active content, follow each function with traditional <object>/<embed> tags within <noscript> tags, as described in the section, What About Users Who Have JavaScript Turned Off?

As you replace the <object> and <embed> tags with these new function calls, edit the argument pairs (represented by “att1Name”, “att1Value”) to include appropriate attributes and their values from your original tags, such as movie, id, bgcolor, etc. You can see an example of this code for a specific Flash file in the sample file SampleActiveContent.html, which is included in the sample file download.

When you edit the function call to pass the movie attribute, do not include the file extension with the movie name. Pass the movie name as follows:

AC_FL_RunContent(
   "movie","foo",
   ...
   "attnName","attnValue"
);

The external JavaScript code will add the appropriate extension.

If you are passing parameters to your Flash file, you might have an original movie attribute that looks like this:

foo.swf?username=Bob&color=red

To pass the name and color attributes successfully, include them as arguments in your function as follows, remembering to omit the file extension:

"foo?username=Bob&color=red"

Be sure to list your arguments in name/value pairs. You need to pass an even number of items to the AC_RunActiveContent.js code; otherwise it will not work. It also automatically inserts other required settings such as classid and mimeType as result of the player-specific function call. If you need to update the value of one of these required settings, edit these values within the AC_FL_RunContent() or the AC_SW_RunContent() functions, which you can find within the AC_RunActiveContent.js code. Within your HTML page, pass only the arguments for the optional parameters.

Here’s an example of how you would replace a standard inline <object> and <embed> tag that plays a Flash file using this method. If you needed to replace the following code:

<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" 
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0"
width="550" height="400" align="middle">
   <param name="allowScriptAccess" value="sameDomain" />
   <param name="movie" value="foo.swf" />
   <param name="quality" value="high" />
   <param name="bgcolor" value="#ffffff" />
<embed src="foo.swf" quality="high" bgcolor="#ffffff" width="550" height="400" name="foo"
align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash"
pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>

you would insert the following function call in its place:

<script type="text/javascript" >
AC_FL_RunContent('codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0',
'width','550','height','400','align','middle','src','foo','quality','high','bgcolor',
'#ffffff','name','foo','allowscriptaccess','sameDomain','pluginspage',
'http://www.macromedia.com/go/getflashplayer','movie','foo' );
</script>

What about users who have JavaScript turned off?

Both of the above methods rely on JavaScript. A small percentage of visitors to your site may have disabled JavaScript in their browsers. The techniques suggested above will not work for these few users—they won’t see your embedded content at all. One thing to keep in mind is that many or most Internet Explorer users who have disabled JavaScript may have also disabled ActiveX support. However, users who have disabled ActiveX have not been seeing Flash and Shockwave content displayed in the browsers. The migration to JavaScript techniques for embedded content doesn’t alter or affect their experience. You need to be concerned only about users who have disabled JavaScript but have ActiveX enabled.

To provide for the small percentage of users who have disabled JavaScript but have enabled ActiveX, insert the <object> and <embed> tags directly into the HTML, but put them within a <noscript> tag. The <noscript> tag is a standard tag that provides fail-safe alternative code for users who have disabled JavaScript. Here’s an example of a standard embedded SWF file nested in a <noscript> tag:

<noscript>
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0"
width="550" height="400" id="foo" align="middle">
   <param name="allowScriptAccess" value="sameDomain" />
   <param name="movie" value="foo.swf" />
   <param name="quality" value="high" />
   <param name="bgcolor" value="#ffffff" />
<embed src="foo.swf" quality="high" bgcolor="#ffffff" width="550" height="400" name="foo" align="middle"
allowScriptAccess="sameDomain" type="application/x-shockwave-flash"
pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
</noscript>

Users who have JavaScript disabled will need to click to activate content in the updated browser when they visit a page with code similar to the above. After that, they can interact with the content as they did before.

Solution for other active content types

In the sample files accompanying this article, we are also including a JavaScript file called AC_ActiveX.js. You don’t need this script to display Flash or Shockwave content using the methods described above. However, developers who are working with other types of active content in web pages can use this script to display other types of content without requiring the user to click to activate it. Think of it as a kind of generic script that works with a broad range of content. You can use this script in much the same way you would use AC_RunActiveContent.js, as described in the steps above.

To implement this script, first include the external files in the <head> section of your HTML page using the following code:

<script src="[path]/AC_ActiveX.js" type="text/javascript"></script>
<script src="[path]/AC_RunActiveContent.js" type="text/javascript"></script>

Then, just as in the Flash/Shockwave method, replace the <object> and <embed> code, modifying the attribute and value pairs to fit your content:

<script type="text/javascript">
   AC_AX_RunContent( 'classid','clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFB','width','150',
'height','100','src','fakefile.foo' );
</script>

Note: You can also find sample code similar to this in SampleActiveContent.html, which is included in the sample file download.

Additional resources

Check out the resources on the Microsoft Developer Network (MSDN) at msdn.microsoft.com/ieupdate/ where you can get more information.

The article JavaScript Flash Player Detection and Embedding with SWFObject provides another method of embedding Flash content from external JavaScript files.

Stay tuned: Active Content Developer Center

Adobe is confident that you will be able to implement the fix on your site successfully using one of these methods. But we want to be sure, so we will continue to give you all the information we can as it becomes available. Please stay tuned to this site for any updates and new methods of displaying active content.

About the author

This content was authored by Adobe Systems, Inc.

Use custom tooltip instead of default validate error in flex

We may use the validator  default in flex framework to check user’s input in our application . You may notice that you are probably doing something wrong (as indicated by the red borders around the form items that begin to appear) but you have no idea what you’re doing wrong. Such as the demo site as the following image:
Needless to say. Sometimes having the user switch input devices and exert additional effort in order to see validation error does not make for good usability.

A better alternative is to actually display the error message beside the control component.

Like this :Actually , the default error message is created by ToolTipManager . Thus , we can custom the error tooltip message.
User the function :
ToolTipManager.pcreateToolTip(text:String, x:Number, y:Number, errorTipBorderStyle:String,context:IUIComponent):IToolTip
Now see the demo code:

MXML:
<?xml version=”1.0″?>
<!– tooltips/CreatingErrorTips.mxml –>
<mx:Application xmlns:mx=“http://www.adobe.com/2006/mxml”>
<mx:Script><![CDATA[
import mx.core.UIComponent;
import mx.managers.ToolTipManager;
import mx.controls.ToolTip;
private var myTip:ToolTip;
private var myError:String = "This place should not be empty.";
private function createBigTip(event:Event):void {

var point:Point = new Point();
point = Name.localToGlobal(point);
if(Name.text==""){
if(myTip==null){
myTip = ToolTipManager.createToolTip(
myError,
point.x + Name.width,
point.y,
"errorTipRight",this
) as ToolTip;
}
}else{
if(myTip!=null){
try{
ToolTipManager.destroyToolTip(myTip);
myTip = null;
}
catch (error:Error){}
}

}
}
]]></mx:Script>
<mx:Style>
Application {
backgroundColor:white;
themeColor:white;
}
Panel {
paddingLeft: 5;
paddingRight: 5;
paddingTop: 5;
paddingBottom: 5;
}
</mx:Style>
<mx:Panel width=“600″ height=“200″ title=“ToolTips”>
<mx:Form width=“100%”>
<mx:FormItem label=“Your Name”>
<mx:TextInput id=“Name” width=“140″ errorString=“Empty”/>
</mx:FormItem>
<mx:FormItem label=“Your Password”>
<mx:TextInput displayAsPassword=“true” errorString=“Empty” width=“140″/>
</mx:FormItem>
<mx:FormItem label=“Your Address”>
<mx:TextInput width=“140″ errorString=“Empty”/>
</mx:FormItem>
</mx:Form>
</mx:Panel>
</mx:Application>

Flash SEO Tool Synopsis

Flash SEO Tool

  • Make your content visible for Google, Bing, Yahoo, etc.
  • Prepare keywords and meta description
  • Automatically make sitemap indexable by spider
  • Create new SEO-friendly Flash website or add this feature to Your existing site
  • Use friendly URLs and integrate them with deep linking
  • Use it with your favourite data provider (text files, XML, AMF, etc.)
  • Make it directly from ActionScript code without any knowledge of PHP, MySQL, Java etc.

Google seems to index flash sites now. But only compiled-in content can be indexed by web spider. Dynamically loaded text nor images are “invisable”. Flash’n'SEO have created some exepriments The idea here is to automatically provide fully functional HTML site “under” Flash content. Flash SEO Tool will make it for you without any server-side coding.

Read more and see an example on flashseotool.com

By Benjiman: Gwiazda built the flash seo tool and hold by google code storage : http://code.google.com/p/flashseotool/ .But we can not get the code yet,just keep your eyes open and waiting for it!

Experience the tencent’s magical image builder

Tonight , I take some photos for a experience the tencent’s magical image builder. Seems good. Excellent!

How to config global style in popup condition in flex

If we have a popup window in flex application , how can we config the style of the application behind. such as the background color?

You can config the global selector in flex with four attributes:
modalTransparencyBlur,  modalTransparency,  modalTransparencyColora and modalTransparencyDuration.

For Example ( build the css code in <Style> tag or css file ):

CSS:
global {
modalTransparencyBlur: 0;
modalTransparency: 0;
modalTransparencyColor: #dce6e7;
modalTransparencyDuration: 0;
}

Example 2:

CSS:
global {
modalTransparencyBlur: 0;
modalTransparency: 0.8;
modalTransparencyColor: black;
modalTransparencyDuration: 500;
}

Flex开发者的一种编码约定——code behind

Code behind,与其说是一种体系结构,不如说是一种编码标准,基于这种标准可以将MXML布局代码与应用各部分的ActionSript清晰地分离。这里以问后的两个附件:SuspendPopUpWindow.as及SuspendPopupWindow.mxml作例子,简单说一下。查看SuspendPopupWindow.mxml。你会发现他看上去非常像一个标准的MXML组件。同时你会注意到,它的根节点(表示MXML组件的基类)并不是标准的Flex控件或容器(如mx:Panel或mx:Form),而是派生的SuspendPopUpWindow。另外注意到SuspendPopupWindow.mxml中没有mx:Script块,只有MXML标记.这个组件的所有脚本都在子类SuspendPopupWindow.as中,这是一个ActionScript类。这正是code behind的含义。组件的所有逻辑都放在ActionScript中,由视图扩展这个类并提供布局。还可以注意到,SuspendPopupWindow类本身扩展了Panel类,所以SuspendPopupWindow组件本身相当于使用了一个Panel作为根节点,不过这样还有一个额外的好处就是能够将逻辑封装在一个超类中。

SuspendPopupWindow.rar (11)

Graffiti——ActionScript 3 Bitmap Drawing Library

What is it?

The Graffiti AS3 Bitmap Drawing Library is designed for ActionScript developers to easily integrate drawing functionality into a Flash, Flex or Air project. It is free to use and modify for noncommercial projects.

Graffiti 是一个为actionscript开发者设计的,可以方便地整合绘画功能到flash、Flex或者Air中的as类库。它可以免费使用,但限于非商业用途。

官方地址:http://www.nocircleno.com/graffiti/

目前有两个版本:graffiti_library_2.5 (15)graffiti_library_1.1 (14)

附上三个例子作参考:BasicProject (21)SimpleTextProject (18)  、 AdvancedProject (18)

Features

Feature 2.5 1.1
You choose the size of the Drawing Canvas. Feature Supported in version 2.5 Feature Supported in version 1.1
Built in zoom functionality including ability to drag an obscured canvas with the mouse. Feature Supported in version 2.5 Feature Supported in version 1.1
Add a Vector or Bitmap image above or below the drawing area. Feature Supported in version 2.5 Feature Supported in version 1.1
Keep a drawing history allowing undo and redo. Feature Supported in version 2.5 Feature Supported in version 1.1
Brush Tool with 7 different Brush shapes. Feature Supported in version 2.5 Feature Supported in version 1.1
Brush Tool supports blurring. Feature Supported in version 2.5
Drawing Tools have support for transparent colors. Feature Supported in version 2.5
Line Tool with 3 types of lines, SOLID, DASHED and DOTTED Feature Supported in version 2.5 Feature Supported in version 1.1
Shape Tool with RECTANGLE, SQUARE, OVAL and CIRCLE Feature Supported in version 2.5 Feature Supported in version 1.1
Fill Bucket Tool Feature Supported in version 2.5
Text Tool (Beta) Feature Supported in version 2.5
Get color value for a point on the drawing. Feature Supported in version 2.5 Feature Supported in version 1.1
Easily retrieve drawing data to use with your favorite image encoder. Feature Supported in version 2.5 Feature Supported in version 1.1
UI independent code that fits invisibly into any project. Feature Supported in version 2.5 Feature Supported in version 1.1

ItemRenderer在DataGrid中涉及问题解决

一、设若DataGrid中有个ComboBox的ItemRenderer,操作这个ComboBox,影响其它列的值变化。要使Flash的画面Redraw,需要将绑定到DataGrid上的ArrayCollection执行refresh().

二、涉及到需要通过绑定数据来更新显示多个DataGrid中的ItemRenderer,需要使用ArrayCollection而不是Array.

三、要理解Flex ItemRenderer生成及使用的机制,在Flex开发人员中心中有这么一段话,道出了ItemRenderer的真面目:假设您要显示 1,000 条记录。如果您认为列表控制会创建 1,000 个 itemRenderer, 您就错了。如果列表只显示 10 行, 它会创建约 12 个 itemRenderer-这些足以显示各个可见行, 多出的几个则用于缓冲和性能。列表最初显示行 1–10。当用户滚动这个列表时, 它现在可能显示行 3-12。但那 12 个 itemRenderer 仍在那里: 及时滚动列表后, 也不会新建任何 itemRenderer。

LoaderMax – Smart AS3 Loading(聪明的加载器组件)

LoaderMax是一个新的As3加载系统,它不仅能将swf、mp3、css、video、image、text、binary、xml等文件加载到你的flash应用里,而且加载文件还可以简单得像吃晚餐一样,吃完一个菜,点下一个菜,再吃完一个菜,再点下一个菜。它微小的惊人。事实上,只有其他加载系统的一半,但是却实现了一些特殊的功能,有一些你可能用不到,但是却不想在生活没有它。这里有一些值得注意的特点:
http://www.LoaderMax.com

  • 在要加载的swf里面集成加载器
  • LoaderMax中自动解析XML
  • 为任何加载器定义备用URL
  • 为所有的加载器提供统一的属性和方法设置
  • 可以为图片加载器、Swf加载器、视频加载器设置宽高,当其加载完,图片、swf、视频可以自动匹配你所设定的宽高
  • 一个加载者可以拥有多个LoaderMax实例
  • 实时报告加载进度
  • 在一行代码里设置多个事件监听:new LoaderMax({name:”mainQueue”, onComplete:completeHandler, onProgress:progressHandler, onError:errorHandler});
  • 具有暂停加载及恢复加载的功能
  • 对Flex很友好

源码及Demo:LoaderMax (106)

经典语录

1、一个年轻人,如果三年的时间里,没有任何想法,他这一生,就基本这个样子,没有多大改变了。
2、成功者就是胆识加魄力,曾经在火车上听人谈起过温州人的成功,说了这么三个字,“胆子大”。这其实,就是胆识,而拿得起,放得下,就是魄力。
3、这个世界,有这么一小撮的人,打开报纸,是他们的消息,打开电视,是他们的消息,街头巷尾,议论的是他们的消息,仿佛世界是为他们准备的,他们能够呼风唤雨,无所不能。你的目标,应该是努力成为这一小撮人。
4、如果,你真的爱你的爸妈,爱你的女朋友,就好好的去奋斗,去拼搏吧,这样,你才有能力,有经济条件,有自由时间,去陪他们,去好好爱他们。
5、这个社会,是快鱼吃慢鱼,而不是慢鱼吃快鱼。
6、这个社会,是赢家通吃,输者一无所有,社会,永远都是只以成败论英雄。
7、如果你问周围朋友词语,如果十个人,九个人说不知道,那么,这是一个机遇,如果十个人,就个人都知道了,就是一个行业。
8、任何一个行业,一个市场,都是先来的有肉吃,后来的汤都没的喝。
9、这个世界上,一流的人才,可以把三流项目做成二流或更好,但是,三流人才,会把一流项目,做的还不如三流。
10、趁着年轻,多出去走走看看。读万卷书,不如行万里路,行万里路,不如阅人无数。
11、与人交往的时候,多听少说。这就是,上帝为什么给我们一个嘴巴两个耳朵的原因。
12、日常工作之外应当多注意自身修养的提高及自身技能的培训。随着计算机技术的广泛应用,为了不被社会所淘汰,就必须加强计算机技术的培训与提高。无论是企业培训还是个人培训都是不可或缺的,我个人推荐一个很好的培训机构:中科院计算所培训中心。
13、不要装大,对于装大的人,最好的办法就是,捡块砖头,悄悄跟上去,一下子从背后放倒他。
14、不要随便说脏话,这会让别人觉得你没涵养,不大愿意和你交往。即使交往,也是敷衍。因为他内心认定你素质很差。
15、想要抽烟的时候,先问下周围的人可不可以,要学会尊重别人。少在女生面前耍酷抽烟,你不知道,其实她们内心很反感。
16、买衣服的时候,要自己去挑,不要让家人给你买,虽然你第一第二次买的都不怎么样,可是,你会慢慢有眼光的。
17、要想进步,就只有吸取教训,成功的经验都是歪曲的,成功了,想怎么说都可以,失败者没有发言权,可是,你可以通过他的事例反思,总结。教训,不仅要从自己身上吸取,还要从别人身上吸取。
18、学习,学习,再学习,有事没事,去书店看看书,关于管理,金融,营销,人际交往,未来趋势等这些,你能获得很多。这个社会竞争太激烈了,你不学习,就会被淘汰。中国2008底,有一百多万大学生找不到工作。竞争这么激烈,所以,一定要认识一点,大学毕业了,不是学习结束了,而是学习刚刚开始。还有,我个人推荐一个很好的视频节目,《谁来一起午餐》。
19、如果你不是歌手,不是画家,也不是玩行为艺术的,那么,请在平时注意你的衣着。现在这个社会,衣着能表现出你属于哪一个群体,哪一个圈子。
20、记住,平均每天看电视超过三个小时以上的,一定都是那些月收入不超过两千元的,如果你想要月收入超过两千,请不要把时间浪费在电视上。同样的道理,那些平均每天玩网络游戏或聊天超过三个小时以上的,也都是那些月收入不超过两千的。
21、因为穷人很多,并且穷人没有钱,所以,他们才会在网络上聊天抱怨,消磨时间。你有见过哪个企业老总或主管经理有事没事经常在QQ群里闲聊的?
22、无论你以后是不是从事销售部门,都看一下关于营销的书籍。因为,生活中,你处处都是在向别人推销展示你自己。
23、平时的时候,多和你的朋友沟通交流一下,不要等到需要朋友的帮助时,才想到要和他们联系,到了社会,你才会知道,能够认识一个真正的朋友,有多难?
24、如果你想知道自己将来的年收入如何。找你最经常来往的六个朋友,把他们的年收入加起来,除以六,就差不多是你的了。这个例子,可以充分的说明一点,物以类聚。
25、不要听信身边人的话,大一不谈恋爱,好的女孩子就被别人都挑走了。想想,刚上大一就耐不住寂寞,受不住诱惑,而去谈恋爱的女孩子,值得自己去追吗?大学里,可以有一场爱情,可是,不要固执地认为,刚上大一,就必须要谈恋爱。
26、记得,要做最后出牌的人,出让别人觉得出其不意的牌,在他们以为你要输掉的时候,这样,你才能赢得牌局。
27、关于爱情,有这么一句话,没有面包,怎么跳舞?无论什么时候,你决定去好好爱一个人的时候,一定要考虑给她你能给予的最好的物质生活。
28、给自己定一个五年的目标,然后,把它分解成一年一年,半年半年的,三个月的,一个月的。这样,你才能找到自己的目标和方向。
29、无论什么时候,记住尊严这两个字,做人是要有尊严,有原则,有底线的。否则,没有人会尊重你。
30、如果,我只能送你一句忠告,那就是,这个世界上没有免费的午餐,永远不要走捷径!

马云经典语录:

1.当你成功的时候,你说的所有话都是真理。
2.我永远相信只要永不放弃,我们还是有机会的。最后,我们还是坚信一点,这世界上只要有梦想,只要不断努力,只要不断学习,不管你长得如何,不管是这样,还是那样,男人的长相往往和他的的才华成反比。今天很残酷,明天更残酷,后天很美好,但绝对大部分是死在明天晚上,所以每个人不要放弃今天。
3.孙正义跟我有同一个观点,一个方案是一流的Idea加三流的实施;另外一个方案,一流的实施加三流的Idea,哪个好?我们俩同时选择一流的实施,三流的Idea。
4.我既要扔鞭炮,又要扔炸弹。扔鞭炮是为了吸引别人的注意,迷惑敌人;扔炸弹才是我真正的目的。不过,我可不会告诉你我什么时候扔鞭炮,什么时候扔炸弹。游戏就是要虚虚实实,这样才开心。如果你在游戏中感到很痛苦,那说明你的玩法选错了。
5.“其实,有的时候人的最大问题就在于他说的都是对的” 。
6.那些私下忠告我们,指出我们错误的人,才是真正的朋友。
7.我生平最高兴的,就是我答应帮助人家去做的事,自己不仅是完成了,而且比他们要求的做得更好,当完成这些信诺时,那种兴奋的感觉是难以形容的……
8.注重自己的名声,努力工作、与人为善、遵守诺言,这样对你们的事业非常有帮助。
9. 商业合作必须有三大前提:一是双方必须有可以合作的利益,二是必须有可以合作的意愿,三是双方必须有共享共荣的打算。此三者缺一不可。
10.服务是全世界最贵的产品,所以最佳的服务就是不要服务,最好的服务就是不需要服务.
11.永远不要跟别人比幸运,我从来没想过我比别人幸运,我也许比他们更有毅力,在最困难的时候,他们熬不住了,我可以多熬一秒钟、两秒钟。
12.今天到北大演讲心里特别激动。我一直把北大的学子当做我的偶像,一直考却考不进,所以我想如果有一天我一定要到北大当老师。
13.看见10只兔子,你到底抓哪一只?有些人一会儿抓这个兔子,一会儿抓那个兔子,最后可能一只也抓不住。CEO的主要任务不是寻找机会而是对机会说NO。机会太多,只能抓一个。我只能抓一只兔子,抓多了,什么都会丢掉.
14.我们公司是每半年一次评估,评下来,虽然你的工作很努力,也很出色,但你就是最后一个,非常对不起,你就得离开。
15.我们与竞争对手最大的区别就是我们知道他们要做什么,而他们不知道我们想做什么。我们想做什么,没有必要让所有人知道。
16.网络上面就一句话,光脚的永远不怕穿鞋的。
17.中国电子商务的人必须要站起来走路,而不是老是手拉手,老是手拉着手要完蛋。我是说阿里巴巴发现了金矿,那我们绝对不自己去挖,我们希望别人去挖,他挖了金矿给我一块就可以了。
18.我深信不疑我们的模式会赚钱的,亚马逊是世界上最长的河,8848是世界上最高的山,阿里巴巴是世界上最富有的宝藏。一个好的企业靠输血是活不久的,关键是自己造血。
19.我为什么能活下来?第一是由于我没有钱,第二是我对INTERNET一点不懂,第三是我想得像傻瓜一样。
20.发令枪一响,你是没时间看你的对手是怎么跑的。只有明天是我们的竞争对手。
21.如果早起的那只鸟没有吃到虫子,那就会被别的鸟吃掉。
22.听说过捕龙虾富的,没听说过捕鲸富的。
23.好的东西往往都是很难描述的。
24.在我看来有三种人,生意人:创造钱;商人:有所为,有所不为。企业家:为社会承担责任。企业家应该为社会创造环境。企业家必须要有创新的精神。
25.一个公司在两种情况下最容易犯错误,第一是有太多的钱的时候,第二是面对太多的机会,一个CEO看到的不应该是机会,因为机会无处不在,一个CEO更应该看到灾难,并把灾难扼杀在摇篮里。
牛根生经典语录:

1.小胜凭智,大胜靠德。
2.有干劲,你就洒下汗水;有知识,你就献出智慧;二者都不具备,请你让出岗位。
3.城市多喝一杯奶,农村致富一家人。
4.财散人聚,财聚人散。
5.一个产品,抓眼球,揪耳朵,都不如暖人心。
6.一个人智力有问题,是次品;一个人的灵魂有问题,就是危险品。经营人心就是经营事业。
7.好心态才有好状态。
8.帮助别人,但不伤害别人。
9.要想知道,打个颠倒。
10.从无到有,是件快乐的事。而从有到无,同样是种快感。
11.产品市场是亿万公民,资本市场是千万股民,原料市场是百万农民。
12.让认识你的人受益,还不能算好;让不认识你的人也受益,那才是真好。
13.吃亏吃到再也吃不进的时候,就不会吃亏了。苦多了,甜就大了。
14.想赢个三回两回,三年五年,有点智商就行;想做个百年老店,想一辈子赢,没有德商绝对不行。
15.学得辛苦,做得舒服;学得舒服,做得辛苦。
16.产品等于人品,质量就是生命。
17.看别人不顺眼,首先是自己修养不够。
18.从最不满意的客户身上,学到的东西最多。
19.管理是严肃的爱。
20.经营企业就是经营人心。
21.人不能把金钱带入坟墓,但金钱却可以把人带入坟墓。
22.一个人快乐不是因为他拥有得多,而是因为计较得少。
23.一个事业能不能成功,关键靠制度设计。
24.别人从零起步,而我从负数起步。
25.听不到奉承的人是一种幸运,听不到批评的人却是一种危险。
26.善待每一头牛,因为它们都是母亲。
27.布局决定结局。
28.世界上还有很多事情,只要你把它做透了,做成专家,你就能够为自己创造成功的机会。
29.会说话的产品卖得快,哑巴产品走得慢。
30.你如果拿五分的力量跟别人较劲,别人会拿出十二分的力量跟你较劲。

史玉柱经典语录:

1.90%的困难你现在想都没有想到,你都不知道那是困难。
2.团队核心成员有人要提出辞职时,不要挽留,既然提出了,他迟早是要走的。
3.如果没有价格上的优势与技术上的绝对优势,千万不要进入红海市场,否则你会必输无疑!
4.做连锁经营业务,一定要做一套傻瓜版的营销手册与管理手册,只有这样,才能实现远距离的管理。
5.做成功一个店之后离你大的成功就不远了,所以你首先就是脚踏实地、集中精力地先做出一家,也是要放弃掉连锁的这种,不要在将来如何做连锁方面做太多的梦,先脚踏实地做出第一家。
6.做全国性市场,一定要先做一个试销市场,要一点点来,快不得;做成了,真到做全国市场时,要快半步,慢不得!
7.初中水平跟博士后没啥区别。只要能干就行,我一直是这个观点,不在乎学历,只要能干能做出贡献就行。
8.作为我们曾经失败过,至少有过失败经历的人,应该经常从里面学点东西。人在成功的时候是学不到东西的,人在顺境的时候,在成功的时候,沉不下心来,总结的东西自然是很虚的东西。只有失败的时候,总结的教训才是深刻的,才是真的。
9.对过去成功的经验再好好总结总结,尤其是对失败的教训,下半夜夜深人静的时候你仔细想一想。反正睡觉也想,想一想实际上对你有很大收获比你看书更有用。因为有的书离你远,那是看自己过去写的东西。

10.最痛苦的时候,压力最大的时候,脑子里面只有一件事儿的时候,我把全国分公司经理招到荒山脚下北大门那个地方,招待所里面,然后在那个地方闭门开批判会。大家批判我,批判了三天三夜,我觉得那个就很有用。
11.要改变消费者固有的想法,比登太阳还难;但不是不可能的。
12.现在的时代,战略正确之后细节决定因素,有很多细节处理不好,你的战略正确了也会失败。
13.不要只看塔尖,二三线市场比一线的更大。
14.管理无情,人有情。
15.所谓人才,就是你交给他一件事情,他做成了;你再交给他一件事情,他又做成了。