AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Thema durchsuchen
Ansicht
Themen-Optionen

xsl-javascript!

Ein Thema von salem01 · begonnen am 1. Dez 2005 · letzter Beitrag vom 1. Dez 2005
 
rochus

Registriert seit: 23. Dez 2004
Ort: Dornstadt
30 Beiträge
 
Delphi 7 Enterprise
 
#2

Re: xsl-javascript!

  Alt 1. Dez 2005, 12:13
probier mal folgendes:

XML-Code:

<script type="text/javascript">
<xsl:comment>
<![CDATA[
  .......
function color(id, c1, c2) {
  if(document.getElementById(id)) {
    var trs = (document.getElementById(id).getElementsByTagName("tbody").length) ? document.getElementById(id).getElementsByTagName("tbody")[0].getElementsByTagName("tr") : document.getElementById(id).getElementsByTagName("tr");
    for(var i=0; i<trs.length; i++)
    trs[i].style.backgroundColor = (i%2) ? c1 : c2;
  }
}

window.onload = function() {
  color("daten", "#fff", "#edf3fe");
}
.....
]]>
</xsl:comment>
</script>
</head>
Nicolai Waniek
Im Nachhinein ist man immer ein Schlauch!
"Dream as if you'll live forever, live as if you'll die today!" James Dean
  Mit Zitat antworten Zitat
 


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 13:25 Uhr.
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz