Need Some Help Please - Post ID 283766

User 122279 Photo


Senior Advisor
14,736 posts

Haven't tried yet, but I would think hex colour will be ok. It usually is in such connections.

I haven't had time to test the solution I posted here, if it would work in SD3. Have been busy with WordPress for a site I'm taking over.
Ha en riktig god dag!
Inger, Norway

My work in progress:
Components for Site Designer and the HTML Editor: https://mock-up.coffeecup.com


User 379556 Photo


Registered User
1,660 posts

Inger is right.

In my example it becomes -
onmousedown
var x = document.getElementsByClassName("blink");
for(i in x) {x[i].style.backgroundColor = "#ff0000"};

onmouseup
this.style.backgroundColor = "#007000";

Frank
User 2699991 Photo


Registered User
5,558 posts

Frank Cook wrote:
Inger is right.

In my example it becomes -
onmousedown
var x = document.getElementsByClassName("blink");
for(i in x) {x[i].style.backgroundColor = "#ff0000"};

onmouseup
this.style.backgroundColor = "#007000";

Frank


Hi again
Problem is that the link still doesn't change back to the original background colour when another link is clicked (unless I have done it wrong, will keep checking it out)
STUCK ON SOMETHING?
Learning by doing. Responsive Site Designer Tutorials

User 379556 Photo


Registered User
1,660 posts

Here's my example.

Frank
Attachments:
User 122279 Photo


Senior Advisor
14,736 posts

Works here.
Ha en riktig god dag!
Inger, Norway

My work in progress:
Components for Site Designer and the HTML Editor: https://mock-up.coffeecup.com


User 2699991 Photo


Registered User
5,558 posts

Frank Cook wrote:
Here's my example.

Frank

I got it finally

Thank you Frank & Inger for your help, it's looking cool now.
Wayan
STUCK ON SOMETHING?
Learning by doing. Responsive Site Designer Tutorials


Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.