Jump to content


Photo

Added javascript don't work


  • Please log in to reply
1 reply to this topic

#1 danko_matasic

danko_matasic

    Newbie

  • Members
  • 9 posts
  • Framework Version:PlatfformPro
  • Country: Country Flag

Posted 31 May 2013 - 09:37 PM

I add some javascript mouse over popup image function.
But code won't work in platform pro, but work great in ordinary html page.
This is the page with small image with num 1 and this image should have similar mouse over image ...
http://www.hosteldayandnight.com/info

And this is web source for that javasrcipt mouse over popup image:
http://prakashmca007...pop-up-preview/

Can you help me some how ?



#2 James B

James B

    Advocate

  • Moderators
  • 4979 posts
  • LocationSurrey - UK
  • Country: Country Flag

Posted 31 May 2013 - 10:31 PM

Hi there,

 

I think it would be much easier to use a plugin that to insert the code manually. Something like - http://www.magictool...ules/wordpress/

 

Otherwise you'll need to follow the guide and add the script code into the header scripts box in the custom code area in the Pagelines admin panel.

 

<link rel="stylesheet" href="style.css" type="text/css">
<script src="mouseover_popup.js" language="JavaScript"
type="text/javascript"></script>

 

Adding the other code as described when you insert the image.

 

The problem is, Platform is now a deprecated product and is no longer recieving updates since Wordpress went to 3.5. So it might not work, as if it does it might not work in a couple of updates time etc.

 

At some point in the future you should consider upgrading to the Pagelines Framework.