Willkommen auf dem Portal für Mediengestalter
|
|
Autor |
Nachricht |
Sabbie
Threadersteller
Dabei seit: 11.02.2003
Ort: Highdelberg
Alter: 40
Geschlecht:
|
Verfasst Fr 11.08.2006 10:33
Titel Schriftart im Java Script ändern |
|
|
Hallo,
wer kann mir kurzfristig helfen?
Möchte im nachfolgenden Java Script die Schriftart ändern. Habe leider zu wenig Programmierkenntnisse.
Vielen Dank schon jetzt,
Sabrina
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
<meta name="generator" content="Adobe GoLive 6">
<title>Willkommen bei Adobe GoLive 6</title>
</head>
<body bgcolor="#ffffff">
<p><body onload="doWave(0);">
<script language="JavaScript">
<!--
function nextSize(i,incMethod,textLength)
{
if (incMethod == 1) return (72*Math.abs( Math.sin(i/(textLength/3.14))) );
if (incMethod == 2) return (255*Math.abs( Math.cos(i/(textLength/3.14))));
}
function sizeCycle(text,method,dis)
{
output = "<font color='red'>";
for (i = 0; i < text.length; i++)
{
size = parseInt(nextSize(i +dis,method,text.length));
output += "<font style='font-size: "+ size +"pt'>" +text.substring(i,i+1)+ "</font>";
}
theKlaus.innerHTML = output;
}
function doWave(n)
{
theText = 'Wasser ist Leben!';
sizeCycle(theText,1,n);
if (n > theText.length) {n=0}
setTimeout("doWave(" + (n+1) + ")", 100);
}
//-->
</script>
<Div class="script">
<div ID="theKlaus">
</div></div></p>
</body>
</html>
|
|
|
|
|
chrisnrw
Dabei seit: 20.08.2004
Ort: Essen
Alter: 38
Geschlecht:
|
Verfasst Fr 11.08.2006 10:51
Titel
|
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
<meta name="generator" content="Adobe GoLive 6">
<title>Willkommen bei Adobe GoLive 6</title>
</head>
<body bgcolor="#ffffff">
<p><body onload="doWave(0);">
<script language="JavaScript">
<!--
function nextSize(i,incMethod,textLength)
{
if (incMethod == 1) return (72*Math.abs( Math.sin(i/(textLength/3.14))) );
if (incMethod == 2) return (255*Math.abs( Math.cos(i/(textLength/3.14))));
}
function sizeCycle(text,method,dis)
{
output = "<font color='red'>";
for (i = 0; i < text.length; i++)
{
size = parseInt(nextSize(i +dis,method,text.length));
output += "<font style='font-family:Verdana;font-size: "+ size +"pt'>" +text.substring(i,i+1)+ "</font>";
}
theKlaus.innerHTML = output;
}
function doWave(n)
{
theText = 'Das ist ein test...';
sizeCycle(theText,1,n);
if (n > theText.length) {n=0}
setTimeout("doWave(" + (n+1) + ")", 100);
}
//-->
</script>
<Div class="script">
<div ID="theKlaus">
</div></div></p>
</body>
</html>
|
|
|
|
|
Anzeige
|
|
|
|
|
|
Ähnliche Themen |
Probleme mit Java Script
Java Script für Filme im PDF
Java Script Problem
Problem mit dem Java Script
Java-Script / Sitemap
[java-script]rollover
|
|
|
Du kannst keine Beiträge in dieses Forum schreiben. Du kannst auf Beiträge in diesem Forum nicht antworten. Du kannst an Umfragen in diesem Forum nicht mitmachen.
|
|