*** SOLVED *** question about event link
- Mary Abigail
-
- Posts: 152
- Joined: Thu Jul 08, 2021 9:46 pm
- Location: Lisbon, Portugal
*** SOLVED *** question about event link
Hi everybody
is there an easy way to turn the mouse pointer icon with a "hand pointer" (common web icon when we click on a link) when i create an event within an object (a shape for instance)?
suppose i create this:
Event: onclick
Action: link
Target: xxx.xxx.com
i know this is possible to do with the Style Manager and assign the hand pointer (or other icon) css style to the event as i see it the only way for doing it now...
any ideas?
is there an easy way to turn the mouse pointer icon with a "hand pointer" (common web icon when we click on a link) when i create an event within an object (a shape for instance)?
suppose i create this:
Event: onclick
Action: link
Target: xxx.xxx.com
i know this is possible to do with the Style Manager and assign the hand pointer (or other icon) css style to the event as i see it the only way for doing it now...
any ideas?
Last edited by Mary Abigail on Mon Feb 19, 2024 3:43 pm, edited 2 times in total.
Mary
"It was always my belief that rock and roll belonged in the hands of the people, not rock stars" - Patti Smith
"It was always my belief that rock and roll belonged in the hands of the people, not rock stars" - Patti Smith
Re: question about event link
You can add this code to the 'Custom Style' section
Code: Select all
cursor: pointer;
- Mary Abigail
-
- Posts: 152
- Joined: Thu Jul 08, 2021 9:46 pm
- Location: Lisbon, Portugal
Re: question about event link
Hi Pablo... did not remember this haha. Simple and pratical. Thank youu!Pablo wrote: ↑Sun Feb 18, 2024 6:27 pm You can add this code to the 'Custom Style' section
Code: Select all
cursor: pointer;
Mary
"It was always my belief that rock and roll belonged in the hands of the people, not rock stars" - Patti Smith
"It was always my belief that rock and roll belonged in the hands of the people, not rock stars" - Patti Smith
- BaconFries
-
- Posts: 5541
- Joined: Thu Aug 16, 2007 7:32 pm
Re: question about event link
Carrying on from Pablos reply see the following for a full list that can be used.
https://www.w3schools.com/cssref/pr_class_cursor.php
https://www.w3schools.com/cssref/pr_class_cursor.php
- Mary Abigail
-
- Posts: 152
- Joined: Thu Jul 08, 2021 9:46 pm
- Location: Lisbon, Portugal
Re: question about event link
Hi BaconFries, thanks for sharingBaconFries wrote: ↑Sun Feb 18, 2024 6:36 pm Carrying on from Pablos reply see the following for a full list that can be used.
https://www.w3schools.com/cssref/pr_class_cursor.php
Mary
"It was always my belief that rock and roll belonged in the hands of the people, not rock stars" - Patti Smith
"It was always my belief that rock and roll belonged in the hands of the people, not rock stars" - Patti Smith
- Mary Abigail
-
- Posts: 152
- Joined: Thu Jul 08, 2021 9:46 pm
- Location: Lisbon, Portugal
Re: question about event link
@Pablo, one last question:
inside the event window it doesn't let me choose the target window [ex: _blank), do i have to put the code in the HTML object by myself?
thank you
inside the event window it doesn't let me choose the target window [ex: _blank), do i have to put the code in the HTML object by myself?
thank you
Mary
"It was always my belief that rock and roll belonged in the hands of the people, not rock stars" - Patti Smith
"It was always my belief that rock and roll belonged in the hands of the people, not rock stars" - Patti Smith
Re: question about event link
If you are adding a link to the shape, why not just use the normal link option which allows you to set the target?
I'm not sure that it is possible to set target=_blank with an event with the code being generated.
I'm not sure that it is possible to set target=_blank with an event with the code being generated.
- BaconFries
-
- Posts: 5541
- Joined: Thu Aug 16, 2007 7:32 pm
Re: question about event link
@mary
Use the following for the event
In Page HTML Insert between <body></body>
Use the following for the event
Code: Select all
onclick="openBlank()"
Code: Select all
<script>
function openBlank() {
window.open('https://www.yourlinkurlhere.com/', '_blank');
}
</script>
- Mary Abigail
-
- Posts: 152
- Joined: Thu Jul 08, 2021 9:46 pm
- Location: Lisbon, Portugal
Re: question about event link
Hi Crispy, i know what you mean, but in this case it's because of the shape clip-path thing i posted the other day, for instance, if i have a shape like a star, polygon, circle, etc, i just want it to be clickable inside the vertices and edges of the shape itself regardless of what that shape looks like. This can only be possible using the Events. The other common way lets me click inside and outsde the shape (not what i want to do).
BaconFries gave me the code, but i thank you too for the reply!
ps - the other post here:
viewtopic.php?p=492318#p492318
Last edited by Mary Abigail on Sun Feb 18, 2024 11:47 pm, edited 2 times in total.
Mary
"It was always my belief that rock and roll belonged in the hands of the people, not rock stars" - Patti Smith
"It was always my belief that rock and roll belonged in the hands of the people, not rock stars" - Patti Smith
- Mary Abigail
-
- Posts: 152
- Joined: Thu Jul 08, 2021 9:46 pm
- Location: Lisbon, Portugal
Re: question about event link
BaconFries wrote: ↑Sun Feb 18, 2024 11:02 pm @mary
Use the following for the eventIn Page HTML Insert between <body></body>Code: Select all
onclick="openBlank()"
Code: Select all
<script> function openBlank() { window.open('https://www.yourlinkurlhere.com/', '_blank'); } </script>
@BaconFries, that will do the trick! Thank you.
Mary
"It was always my belief that rock and roll belonged in the hands of the people, not rock stars" - Patti Smith
"It was always my belief that rock and roll belonged in the hands of the people, not rock stars" - Patti Smith