Wix text and links

Hi,

I have a block of text that I would like to have links in that go to another site on my page. I know how to do this in the text options however I would like to change the hover on/off colour properties. I managed to do this in an iframe element but this meant that any link clicked in this element would display the page in the element and not open the page in the tab.

I have read through the Corvid API reference document on how to do this but I am still unable to do it. Please could someone help. I would like a certain word to link to a page on my site and appear black to begin with and then change to yellow when hovered over and then change to black again when hovered back off it.

Thanks

Nathan

Hi. This can achieved with the help of onMousein() and onMouseOut . As for the link, you can add them inside onClick event and WixLocation.to() . To learn more on reacting to user events, check out this tutorial: Corvid: Reacting to User Actions Using Events

Thanks - how would I go about doing this - do I create a new text element in wix and then do the code within that?