1. Dashboard
  2. Artikel
  3. Mitglieder
    1. Letzte Aktivitäten
    2. Benutzer online
    3. Team
    4. Mitgliedersuche
  4. Forum
    1. Unerledigte Themen
  • Anmelden
  • Registrieren
  • Suche
Dieses Thema
  1. HTML - Webmaster Forum
  2. HTML / Webmaster Forum
  3. HTML & CSS Forum

Text auf Bild

  • simcon94
  • 28. Juli 2005 um 09:11
  • simcon94
    Interessierte/r
    Beiträge
    84
    • 28. Juli 2005 um 09:11
    • #1

    Hallo,
    wiess jemand, wie ich eine Text auf ein Bild legen kann?
    Im Moment habe ich eine Tabelle mit Button und Bilder.

    HTML
    <html>
     <head>
      <meta ttp-equiv="content-type"content="text/html;charset=iso-8859-1">
      <meta name="" content="Adobe GoLive 5">
      <title>Test</title>
    <script>
    // ============================================================================
    // here begins java script code
    // ============================================================================
    function vs_multilink(URL1,F1,OP1,URL2,F2,OP2,URL3,F3,OP3)
    	{URL=new Array(); F=new Array(); OP=new Array(); URL[1] = URL1; URL[2] = URL2; URL[3] = URL3; F[1] = F1; F[2] = F2; F[3] = F3; OP[1] = OP1; OP[2] = OP2; OP[3] = OP3;
    	for(i=1;i<=3;i++){if(URL[i] != "") {
    		if(F[i] == "_blank") {window.open(URL[i])}
    		else{ if(F[i] == "_self") {location.href=URL[i];}
    		    else{ if(F[i] == "_top") {top.location.href=URL[i];}	
    			else{ if(OP[i] != "") {vs_openbr(URL[i], F[i], OP[i])}
    				else{ parent.frames[F[i]].location.href=URL[i];}}}}}}}
    // ============================================================================
    function OpenHelp()
    {
      var neu=null;
      neu=window.open('', 'remote', 'directories=no, menubar=no, resizable=yes, scrollbars=yes toolbars=no, status=no, location=no, height=650	, width=800');
      if (neu != null)
      {
        if (neu.opener == null)
        {
          neu.opener = self;
        }
        //neu.location.href = 'help.html';
        neu.location.href = 'dialog_NotAvailable_Help.html';
      }
    }
    // ============================================================================
    function doHoverHelp(b,i)
    {
     f = document[b].src;
     f = f.substr(0,f.length-5);
     f+=i+".gif";
     document[b].src = f;
    }
    // ============================================================================
    function doHoverExit(b,i)
    {
     f = document[b].src;
     f = f.substr(0,f.length-5);
     f+=i+".gif";
     document[b].src = f;
    }
    // ============================================================================
    // end java script
    // ============================================================================
    </script>
     </head>
      <body onload="" background="menu.gif" topmargin="490"   marginheight="490" leftmargin="25" marginwidth="25">
      <div align="left">
      <table border="0" cellpadding="0" cellspacing="5" width="64">
      <tr height="50">
      <td width="150" height="50"><a href="#" onmouseover="doHoverHelp('HELP','2');" onmouseout="doHoverHelp('HELP','1');" onclick="OpenHelp()">
    					[img]Help_1.gif[/img]
    					</a></csobj></td>
    				</tr>
    				<tr height="50">
    					<td width="150" height="50"><csobj w="149" h="51" t="Button" ht="Exit_2.gif"><a href="javascript:window.close()" target="_top" onmouseover="doHoverExit('EXIT','2');" onmouseout="doHoverExit('EXIT','1');">
    					[img]Exit_1.gif[/img]
    					</a></csobj></td>
    				</tr>
    			</table>
    
    
    
    </p>
    		</div>
    	</body>
    </html>
    Alles anzeigen

    Nun möchte ich aber nur noch ein Bild haben, und den Text möchte ich selber auf das Bild schreiben können.
    Jedes mal ein anderer, so dass sich die Labels für die Button zur Laufzeit ändern können, ohne dass ich ein neues *.gif laden muss.

    Hat jemand ein Vorschlag?

  • simcon94
    Interessierte/r
    Beiträge
    84
    • 28. Juli 2005 um 10:03
    • #2

    Hat sich erledigt.

Tags

  • bilder
  • button
  • gif
  • html
  • tex
  • background
  • body
  • text
  • java
  • frames
  • location
  • code
  • bild
  • tabelle
  • status
  • array
  • div
  • javascript
  • border
  • script
  • adobe
  1. Datenschutzerklärung
  2. Impressum
Community-Software: WoltLab Suite™
  • Alles
  • Dieses Thema
  • Dieses Forum
  • Artikel
  • Seiten
  • Forum
  • Erweiterte Suche
Zitat speichern