[JQuery] это не причина, это меньше головной боли :34:
http://api.jquery.com/mouseover/
в самом низу странитсу пример, открой эту странитсу в любом браузаре будет работать.
Last edited by Olezhik; 02-17-2010 at 01:43 PM.
Палец от станка не далеко падает.
да и забыл заменить width и height у textarea на cols и rows, так что правильно так
:cheer:<html>
<head>
<script type="text/javascript">
var a=0;
function mouseOver1()
{
a=1;
document.getElementById("t1").value="so"
}
function mouseOver2()
{
if (a==1)
{
a=0;
document.getElementById("t1").value="some words";
}
}
</script>
</head>
<body>
<textarea cols="25" rows="2" onmouseover="mouseOver1()"> </textarea>
<textarea cols="25" rows="2" onmouseover="mouseOver2()"> </textarea>
<br> <br> <br>
<center>
<textarea id="t1">so</textarea>
</center>
</body>
</html>
Знаешь - вот смотрю я на этот Adobe Flex , даже пару тестов написал и проверил (на работу с потоковым видео и звуком). Но какое-то оно у них всё "длинное и неудобное". С кириллицей всё хорошо - пока всё внутри mxml-файла. Как только всё в *.as - сразу начинается трабл. Для сравнения - в haxe достаточно всё просто тупо в кодировке UTF-8 делать (правда haxe вообще никакой другой принципиально не понимает :grum.
Но "на выходе" всё равно будет swf (в случае haxe. Хотя там есть и несколько других вариантов).
Здравствуй . шиза! :rofl:
https://developer.mozilla.org/en/Jav...Statements/var
https://developer.mozilla.org/en/Jav...c_and_Literalsvar varname1 [= value1 [, varname2 [, varname3 ... [, varnameN]]]];
Parameters
varnameN Variable name. It can be any legal identifier. valueN Initial value of the variable. It can be any legal expression.
Description
The scope of a variable is the current function or, for variables declared outside a function, the current application.
Using var outside a function is optional; assigning a value to an undeclared variable implicitly declares it as a global variable. However, it is recommended to always use var, and it is necessary within functions in the following situations:
Another unusual thing about variables in JavaScript is that you can refer to a variable declared later, without getting an exception. This concept is known as hoisting; variables in JavaScript are in a sense "hoisted" or lifted to the top of the function or statement. However, variables that aren't initialized yet will return a value of undefined.
Last edited by crazy-mike; 06-19-2011 at 03:36 AM.
Здравствуй , шиза!
Здесь уже многозадачность появилась! (multi-threading)
https://developer.mozilla.org/en/Using_web_workers
Workers of all the scripts , unite! :rofl:
There are currently 1 users browsing this thread. (0 members and 1 guests)
|
|
Terms of Service | Privacy Policy |
|