Quantcast
Channel: SharePoint Legacy Versions - Using SharePoint Designer, InfoPath and Other Customizations Forum
Viewing all articles
Browse latest Browse all 2319

mouseover event in Sharepoint 2013

$
0
0

Hi all,

I have been trying to do a button rollover effect in Sharepoint 2013.  I have my 2 different .png files located in site assets.  The code I have been working with is ...

<a href="https://linktopage.aspx" onmouseover="document.rollover.src=https://linktorolloverimage.png" onmouseout="document.rollover.src=https://linktomainbuttonimage.png"><img src="linktomainbuttonimage" border=0 name="rollover"></a>

I add a content editor web part>click on edit web part>click here to add new content>edit source and then paste the above code in. 

I get the image and it goes to the appropriate link but the rollover does not happen.  Not sure what I have been missing.  I have read various post about this but unfortunetly it does not make a whole lot of sense to me.  Is there additional code that I need to add to the "body"  if so does the "body" refer to that page and just editing the source there as well as in the content editor?   Any help would be greatly appreciated.


Viewing all articles
Browse latest Browse all 2319

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>