|
|
|
|
||||||
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
hey there,
i'm hoping to add an unobtrusive link to an h1 tag (the h1's id="logo") that has an image replacement behind it. i don't know javascript too well, but i think i have it pretty close. i'm just unaware of how to make javascript open a url. thanks for your ! function logoLink { document.getElementById("logo").onClick = function () { this is where i get stuck } } |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
i figured this out with having to rely on javascript
#logo is the div the h1 is located in <h1><a href="index.cfm">text</a></h1> #logo a { width: 290px; height: 75px; display: block; } #logo h1 { width: 290px; height: 75px; background: url("../images/Logo.gif") no-repeat 0 0; } |
|
![]() |
| Outils de la discussion | |
|
|