السلام عليكم ورحمة الله وبركاته
ممكن أحد يساعدني ويقول لي كيف طلعت المخرجات بهذا الشكل من فضلكم
< Script type =”text/javascript”>
Var speed = 5;
Var count = 10;
Var direction = 1;
Var firstline=”text gowing”;
Var font style=[ “serif”,”sans-serif”,”monospace”];
Var fontstylecount=0;
Function start()
{
Window.serInterval(“run()” , 100);
}
Function run()
{
Count +=speed;
If ( ( count %200) == 0) {
Speed *=-1 ;
Direction = ! direction ;
Ptext.style.color=(speed < 0) ? “red” : “blue” ;
Fristline=(speed < 0 ) ? “text shrinking” : “textgrowing” ;
Ptext.style.fontfamily=fontstyle[ ++ fontstylecount % 3] ;
}
Ptext.style.fontsize=count /3;
Ptext.style.left=count;
Ptext.innerHTML = firstline + “ < br> font size : ” + count + “px” ;
}
</script>
</head>
<body onLoad =”start”>
<p id=”ptext” style=position:absolute ; left:0; font-family: serif ; color:blue”>
Welcome! </p>
</body>
</html>
Presentation1.pptx