Need Some Help Please - Post ID 283766

User 122279 Photo


Senior Advisor
14,447 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,533 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
4,782 posts
Online Now

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)
Mastering The Understanding With Hands-On Learning
NEW TO "COFFEECUP SITE DESIGNER" FOUNDATION 6 FRAMEWORK?
STUCK ON SOMETHING?

LEARNING & UNDERSTANDING "THE HOW TO"? THE WHY'S & THE WHEREFORE'S?
WITH WAYAN'S STEP BY STEP TUTORIALS
Contact Me For One To One Assistance
https://alphathemes.coffeecup.com/forms … an%281%29/
User 379556 Photo


Registered User
1,533 posts

Here's my example.

Frank
Attachments:
User 122279 Photo


Senior Advisor
14,447 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
4,782 posts
Online Now

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
Mastering The Understanding With Hands-On Learning
NEW TO "COFFEECUP SITE DESIGNER" FOUNDATION 6 FRAMEWORK?
STUCK ON SOMETHING?

LEARNING & UNDERSTANDING "THE HOW TO"? THE WHY'S & THE WHEREFORE'S?
WITH WAYAN'S STEP BY STEP TUTORIALS
Contact Me For One To One Assistance
https://alphathemes.coffeecup.com/forms … an%281%29/

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.