Welcome,
Guest
.
Please
login
or
register
.
Did you miss your
activation email
?
News:
Did you know that
Elxis 5.x
uses HTML5, CSS3 and pure javascript without external libraries such as jQuery?
Home
Help
Login
Register
Elxis CMS Forum
»
Support
»
Technical support
»
How to use tinymce "onmouseover" event.
« previous
next »
Print
Pages: [
1
]
Author
Topic: How to use tinymce "onmouseover" event. (Read 10617 times)
Amigamerlin
Sr. Member
Posts: 358
How to use tinymce "onmouseover" event.
«
on:
November 19, 2012, 10:45:08 »
Hello you all,
anyone can explain me how sintax to use "onmouseover" tinymce event?
I have an image with link and I would like to show another image when mouse come over this image.
Thank you you all.
Logged
xmanhattan
Hero Member
Posts: 1235
If I'm still breathing, I'm doing something!
Re: How to use tinymce "onmouseover" event.
«
Reply #1 on:
November 19, 2012, 14:58:13 »
Hello Amigamerlin,
In the edit content items page where you have your image, click the insert/edit image icon.
In the advance tab, check Alternative image, then put a link into for mouse over and the return link of either the original image or another into for mouse out.
Logged
Bournias.net
datahell
Elxis Team
Hero Member
Posts: 10363
Re: How to use tinymce "onmouseover" event.
«
Reply #2 on:
November 19, 2012, 15:01:58 »
You need some javascript and you can not write javascript in the editor.
Do this:
switch editor into html mode add an onmouseover event on the element you want, for example:
<img src="
http://www.example.com/images/mydir/original.png
" onmouseover="dosomething(this, 'hello.png')" onmouseout="dosomething(this, 'original.png')" />
Create
dosomething
function and place it in a js file that it is included by your template.
function dosomething (obj, img) {
obj.src = '
http://www.example.com/images/mydir/'+img;
}
Logged
Elxis Team
|
Is Open Source
|
IOS Rentals | IOS AERO
xmanhattan
Hero Member
Posts: 1235
If I'm still breathing, I'm doing something!
Re: How to use tinymce "onmouseover" event.
«
Reply #3 on:
November 19, 2012, 17:01:44 »
The tinymce editor has it built in.
Logged
Bournias.net
datahell
Elxis Team
Hero Member
Posts: 10363
Re: How to use tinymce "onmouseover" event.
«
Reply #4 on:
November 19, 2012, 19:11:15 »
Oh sorry, I am used to do everything by hand
Logged
Elxis Team
|
Is Open Source
|
IOS Rentals | IOS AERO
Amigamerlin
Sr. Member
Posts: 358
Re: How to use tinymce "onmouseover" event.
«
Reply #5 on:
November 19, 2012, 19:15:22 »
Thank you datahell, xmanhattan !!!
You all are precious !!!
Logged
Print
Pages: [
1
]
« previous
next »
Elxis CMS Forum
»
Support
»
Technical support
»
How to use tinymce "onmouseover" event.