|
||||||
| JavaScript and CSS Extensible Markup Language, Java Script, and CSS questions here. |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|||||
|
I have a button on my website that pushes down when you roll over the image - very simple, it's implemented like this:
Code:
p.random-game-button a
{ background-image : url('images/random-button-up.jpg'); }
p.random-game-button a:hover
{ background-image : url('images/random-button-down.jpg'); }
But Squidoo only lets you use inline CSS, so things get implemented like this: HTML Code:
<b style="font-weight:normal;color:#ff0000">red<\b> HTML Code:
<a style="background-image:url(images/random-button-up.jpg)"><\a> Or is there an alternative way to implement an image rollover in Squidoo? (Sadly, javascript isn't supported.)
__________________
My fun, friendly online games website: Cygnet Games My Squidoo page on Cygnet Games. |
| Sponsored Links |
|
|
|
|||||
|
I think that this may work:
HTML Code:
onmouseover="this.style='background-image : url('images/random-button-down.jpg');'
HTML Code:
<a style="background-image:url(images/random-button-up.jpg)" onmouseover="this.style='background-image : url('images/random-button-down.jpg')'"><\a>
__________________
CodeCall Blog | CodeCall Wiki | Shareware Site | Linux Forum | Write a Blog Don't hesitate to ask any questions that you have! Check out our ASCII Calculator! |
|
|||||
|
Thanks for the idea, but unfortunately it doesn't work.
Squidoo removes the "onmouseover" attribute as the contents of it are javascript, and they don't let people use javascript for security reasons. I cross-posted this question on the squidoo forums but have only got a reply of "Hmm... I don't think so." so far. This might be a bit of a puzzle...
__________________
My fun, friendly online games website: Cygnet Games My Squidoo page on Cygnet Games. |
![]() |
| Currently Active Users Viewing This Thread: 2 (0 members and 2 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to make image straight - Photoshop | ahsan16 | Photoshop Tutorials | 56 | 07-30-2008 03:11 PM |
| JavaScript:Tutorial, MouseOver Image Change | TcM | Javascript | 2 | 10-30-2007 01:51 PM |
| Resize Images And Maintain Original Sharpness | AfTriX | Photoshop Tutorials | 7 | 04-20-2007 09:55 AM |
| PHP Image | NeedHelp | JavaScript and CSS | 1 | 04-20-2007 09:00 AM |
| Resize an Image | Blaze | C# Programming | 3 | 09-22-2006 06:58 PM |
| Xav | ........ | 1335.07 |
| MeTh0Dz|Reb0rn | ........ | 1059.99 |
| morefood2001 | ........ | 898.18 |
| John | ........ | 887.37 |
| marwex89 | ........ | 875.28 |
| WingedPanther | ........ | 864.22 |
| Brandon W | ........ | 764.23 |
| chili5 | ........ | 312.39 |
| Steve.L | ........ | 256.16 |
| dcs | ........ | 231.11 |
Goal: 100,000 Posts
Complete: 83%