Recently, ESET add my domain name to the black-list of their database. You can’t open my site and been warned my site is not safe if your PC is running the ESS or EAV. Why Eset block my site?The answer is obvious. That is reason that you come here. I promise that my site is pure, no virus, no spyware, no Trojan, no pop ads. You can test my word through intalling Kaspersky or other Antivirus Software. If you want open my site and take latest escalation ID & Activation Code, close your ESET software(disable antivirus and antispyware protection function temporarily) or by proxy or virtual machinor. You can also feed the RSS source http://feed.loserblog.cn.

Archive

Archive for the ‘Programm’ Category

Online editor of the key parameters

July 6th, 2008 Loser No comments


In fact very simple, so long as the document Iframe a designMode attribute set to "on" like,
Following the code through IE and Mozilla

<SCRIPT>
function Start () (
   document.getElementById ( 'edit'). contentWindow.document.designMode = "on";
   try (
     document.getElementById ( 'edit'). contentWindow.document.execCommand ( "undo", false, null);
   ) Catch (e) (
     alert ( "This demo is not supported on your level of Mozilla.");
   )
)
</ SCRIPT>
<body onload="Start()">
<iframe id="edit" width="100%" height="200px"> </ iframe>
</ body>

Categories: Programm Tags:

Javascript is a panacea?

July 6th, 2008 Loser No comments

The company has more than a year time. Although the outlook is so site design. However, the preparation of Javascript is my job. After all, we do online system. Therefore, the use of Javascript will be many.

I have used many other companies do, I dare say that many companies will ignore the use of Javascript. Javascript really can do a lot of things. It's the biggest advantage is that a system can enhance the ease of use, but it also has fatal Indeed points. Speed in general. If the large amount of frequently used data so the cycle … this shortcoming is even more apparent.

I see in many forums on the game was written with Javascript, ah, do exemplary vector and Flash animation, and so on, and here I have to admire their programming ability, but Think about it, and these will be used to write Javascript To practice? »

Netscape initially developed LiveScript is also in order to achieve interactive client. Finally, and changed its name to Sun joint Javascript.
Each language has its development orientation, if beyond the scope. Can only say you tried to stop the program. The effect can only get you is the one and praise.

Personal view, Javascript for as long as the site or system, in order to develop a functional and just. Do not waste time on the weaknesses in it.

take an example.
http://www.bindows.net/bindows/samples/applauncher/
Javascript function is very powerful components. But the author forget a little, Javascript fatal flaw – speed. So this stuff is basically not heard of any successful case. Amateur research like the

Categories: Programm Tags:

Firefox can not access the solution cssRules

July 5th, 2008 Loser No comments

Firefox is too BT, we increase the total to some silly security permissions set. Qzone done in the past few days with the FF found. Set up a domain after, FF unable to access the cssRules the styleSheets.
Although it is impossible to obtain cssRules, but I was surprised to find that actually can styleSheets in the style to insert and delete. This is the men Zi authority ah, not the boring.

I have to insert and delete enough. Use of these two methods can also operate on the style to update. In order for firefox compatible with IE. CSSStyleSheet I revised the method of the prototype
Code code
CSSStyleSheet.prototype.addRule = function (selectorText, cssText, index) (
     return this.insertRule (selectorText + cssText, index);
)
CSSStyleSheet.prototype.removeRule = CSSStyleSheet.prototype.deleteRule

This firefox can also use IE's addRule and the removeRule.

Categories: Programm Tags:

Javascript judgement object of a specific category

July 5th, 2008 Loser No comments

    We all know that the typeof Javascript can get the type of variable, but only six typeof return value "number," "string," "boolean," "object," "function," and "undefined."

Javascript fact there are many special categories such as Array, Date. Why can not the return of this typeof »
Javascript is to the original Array Date Object of these are classified into categories of the object. We only through the instanceof to judge the exact type of object.

There is a simple example, can explain the use of instanceof

Code code
function objTest (obj) (
    var i, t, s = ""; / / create a variable.
    t = new Array (); / / create an array.
    t [ "Date"] = Date; / / fill the array.
    t [ "Object"] = Object;
    t [ "Array"] = Array;
       for (i in t)
       (
          if (obj instanceof t [i]) / / check obj categories.
          (
             s + = "obj is an instance of" + i + "\ n";
          )
          else
          (
             s + = "obj is not an instance of" + i + "\ n";
          )
    )
    return (s); / / Top of the string.
)

var obj = new Date ();
response.write (objTest (obj));

Categories: Programm Tags:

Aptana and JSEclipse

July 5th, 2008 Loser No comments

    
Aptana: a good Javasript IDE, a separate version of the powerful.
JSEclipse: Eclipse only as a Plugins.

Both are a very good IDE. But spent some time, or compact JSEclipse found more suitable for me.

Aptana many functions, grammar and bright, auto-complete code, but its code analysis capabilities than JSEclipse Cixie. But the most important issue is not Aptanan support to the Chinese, have Chinese, he highlighted the problem on. But Aptana IDE up and running more slowly ~ ~

I am the main plugins configuration Eclipse 3.2

clearCase + clearQuest + JSEclipse + Aptana (now banned because of conflict and JSEclipse) + Flex + JAVA + HTML Editor Plugins

Categories: Programm Tags:

execCommand List

July 5th, 2008 Loser No comments

    
execCommand used in the web WYSIWYG editor of an interactive interface. The two major browsers support the command String are not the same place.

For IE
http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/reference/commandids.asp

For Mozilla
http://www.mozilla.org/editor/midas-spec.html

Categories: Programm Tags:

Access to select the type of target

July 5th, 2008 Loser No comments

    Document.selection in the use of Javascript can create textRange. But time is not what can be created.
Document.selection.type we can use to judge the current selection is the text or objects.

document.selection.type to return to the three values "None" "Text" "Control"

Only when the return value is Text, to create the textRange is effective.

Categories: Programm Tags:

Difference between the two function of Javascript

July 5th, 2008 Loser No comments

the difference between the two  function of Javascript
We all know that there are two kinds of Javascript Function definition of the method is very common. For example,

function a () (alert ( "a"))
var a = function () (alert ( "a"))

Although the two kinds defined by the function called when the results of the same, but there is still difference between the middle. Cite a simple example, if we are to re-definition of a (), but the new method should inherit a () inside and all other methods of expansion. This can clearly see the difference between the two methods.

1. First of all, we first establish a temporary variable to store a ()
    var b = a;

Then, re-definition of a ()
The first method:
function a () (
     b ();
     alert ( "ok");
)

The second approach:
a = function () (
     b ();
     alert ( "ok");
)

It is found that we can try. The first approach to the definition of a () will stack overflow error. The second method is to retain the original success of a () enforced by the script, the success of alert to the "a" "ok" the words that a () method was re-defined.

Here you can clearly distinguish the difference between the two methods. Different definition of the order.
The first one, did not in fact the beginning of a re-definition of the function and inside the implementation of its own.
The second method, a = function () not here to function inside the implementation of a code has been redefined. So here the re-definition is effective.

Categories: Programm Tags:

Firefox's setTimeout will be one more strange para

July 4th, 2008 Loser No comments

    

Code code

   <SCRIPT LANGUAGE="JavaScript">
   <! –

     function a () (
         alert (arguments [0])
     )
     setTimeout (a, 0)
   //–>
   </ SCRIPT>


This copy of the code to run firefox. Every time we will see a numerical firefox will be transferred to a () This amount of time and setTimeout relations. But some do not know what is the intention of firefox ?????

Categories: Programm Tags:

Flash activation of the small box found

July 4th, 2008 Loser No comments

    IE there is no deception Flash activation of the small box found
We all know that there is no deception IE Flash activate the box it's easy as long as the page above the introduction of a js file, and then use js to control the flash output to html code. However, if our script is a dynamic load there will be two cases, see the following code

Code code
var s = docuemnt.createElement ( "script");
s.src = src;
docuemnt.getElementsByTagName ( "head") [0]. appendChild (s);


Code code
var s = docuemnt.createElement ( "script");
docuemnt.getElementsByTagName ( "head") [0]. appendChild (s);
s.src = src;


Read a result of the implementation of the two broken code almost above. But there is a code can not deceive IE, the introduction of the js flash output will activate box.

Broken only difference is that these two set an initial target of the script src assignment to append to the head. or to append another assignment. I do the experiment, only the script src set an initial assignment to append to the pages on top of the IE can be deceiving.

Categories: Programm Tags:
  • Partner links