<b>REGISTER</b>

GFX-Sector - Javascript & jQuery


 
GFX-Sector » Coding Area » Webentwicklung » Javascript & jQuery » Javascript hilfe » Hello Guest [Login|Register]
Last Post | First Unread Post Print Page | Recommend to a Friend | Add Thread to Favorites

Javascript & jQuery

Probleme, Fragen oder sonstiges mit JavaScript, jQuery und co? Hier bist du richtig!
Post New Thread Post Reply

Javascript hilfe

     Deutsche Version  English version
Author
Post « Previous Thread | Next Thread »

Nicotsche Nicotsche is a male
Fingerwischer


Avatar von Nicotsche

Registration Date: 15.07.2009
Posts: 27
Location: Deutschland - Insel Rügen
Program: Photoshop cs4 - cs5

Spacer
Javascript hilfe

Javascript hilfe

      

Hi,

also ich hab in 'ner externen .css Datei mit a {background:;} usw einen Hintergrund für links gemacht, einen button Hintergrund, das klappt auch alles perfekt, nur wenn ich javascript mit Einbau wird der Button, bzw der Hintergrund nicht mehr ganz angezeigt wie bei normalen links ohne javascript

was ist das? o.ô

hier der Link
<a href="java script:void(O)" onclick="look('preise');" style="background: url('../www/sap/button.png') no-repeat; width: 100px; height: 35px;" id="preiseLINK">Preise</a> <a href="java script:void(O)" oncl


Javascript hilfe 12.04.2011 21:51 Nicotsche is offline Homepage of Nicotsche Search for Posts by Nicotsche

Ephraim
Co-Administrator


Avatar von Ephraim

Registration Date: 17.03.2008
Posts: 4,363
Forums: (alle)

Spacer

RE: Javascript hilfe

      

Ehmmm ?!
Wenn ich dich richtig verstanden hab hast du in einer CSS Datei den Hintergrund für Links bestimmt.
Die werden aber nicht angezeigt, wenn du mit Javascript arbeitest?
Daran liegt es, falls ich nicht grad komplett fehl liege, nicht.

Ich frage mich wieso du

code:
1:
style="background: url('../www/sap/button.png') no-repeat; width: 100px; height: 35px;""


mit reinschreibst?
Wie hast du dir das so vorgestellt mit zwei mal Hintergrund bestimmen?
Hast ja die CSS Datei nicht umsonst erstellt.
Ansonsten wäre es nicht verkehrt, wenn wir die CSS Datei zur Verfügung hätten bzw. du deinen stand auf einen Webspace hochladest.


lg

Javascript hilfe 15.04.2011 14:14 Ephraim is online Search for Posts by Ephraim

Nicotsche Nicotsche is a male
Fingerwischer


Avatar von Nicotsche

Registration Date: 15.07.2009
Posts: 27
Location: Deutschland - Insel Rügen
Program: Photoshop cs4 - cs5

Thread Starter Thread Started by Nicotsche
Spacer

RE: Javascript hilfe

      

Das mit style="bla bla" beim <a war nur zum testen ob's denn geht, aber auch nicht, ja ich habe den hintergrund der button's für links, in einer externen style.css, aber wenn ich mit javascript in einen div lade wird der hintergrund zwar angezeigt aber nicht ganz, und egal was ich mach zb a { color: #fff;} klappt auch nicht mit javascript o.ô



Javascript hilfe 18.04.2011 20:17 Nicotsche is offline Homepage of Nicotsche Search for Posts by Nicotsche

ClOuDy. ClOuDy. is a male
Pfadfinder


Avatar von ClOuDy.

Registration Date: 31.01.2010
Posts: 566
Program: PS CS5

Spacer
      

viel zu kompliziert...entweder ganz css oder garnicht.

<a href=""><img src="images/bild.png" alt="" onmouseover="this.src='images/bild1.png'" onmouseout="this.src='images/bild2.png'" /></a>

viel spaß



This post has been edited 2 time(s), it was last edited by ClOuDy.: 23.04.2011 21:47.

Javascript hilfe 23.04.2011 21:46 ClOuDy. is offline Search for Posts by ClOuDy.
 
Spacer
   
GFX-Sector
unregistered


 hat kein Avatar


Spacer

Have you enjoyed this topic?


If you were enjoying this post and if you keen on reading more interesting stuff then do not hesitate to complete the free sign up.

After the free registration you will gain access to all areas and you will be able to communicate with other artists from all over the world.

In addition you will benefit from our Photoshop and coding section as well as from our huge (hundreds of gigabytes) free resource section where you can find everything you will need to be a successful (web) designer/artist.

Sign up now and enjoy the advantages as a registered member.

(This website will be ad-free after a complete free sign up.)

New Post 23.04.2011 21:46  
Tree Structure | Board Structure
Post New Thread Post Reply
GFX-Sector » Coding Area » Webentwicklung » Javascript & jQuery » Javascript hilfe

Similar topics to Javascript hilfe
Thread
[javascript] string zuweisung bei css (Forum: Javascript & jQuery)
Hilfe beim Render & Stock einarbeiten ;x (Forum: Fragen & Probleme)
Brauche Eure Hilfe! (Forum: Archiv für Anfragen)
[Javascript] Javascript: Hinweisfenster (Forum: Javascript Tutorials)
HTML Problem :( HILFE!! (Forum: HTML, CSS)