Something I've noticed recently, whilst installing many different WordPress plugins on my site and on other sites is the inconsistency in JavaScript popup window code used in many plugins, allowing for the same popup to be opened numerous times or for a popup to hide in the background behind another page. The basic code to open a popup is:
window.open('http://bla.com','myWindow','status = 1, height = 300, width = 300,
resizable = 0');
However, if you add this code as the onclick for a button or anchor tag it will open a new popup each time it is clicked regardless of the fact that the window may already be open. Adding return false; will prevent this from happening, but then if the window is at the bottom of the pile clicking on the link will do nothing.
To ensure the window is brought to the front the code should be executed like this:
myPopup = window.open('http://bla.com','myWindow','status = 1, height = 300,
width = 300, resizable = 0'); myPopup.focus(); return false;
thanks for making a great clock.
is there a way to change the font size?
thanks again!
Awesome clock! But the clock is not working in my sidebar? I used a text widget and embedded your code:
Please help
Hi BJJ
Did you double check the plugin had installed correctly? Are you seeing the WP Digi Clock options page in wordpress? If so is the example clock on that page working?
Sam
had to edit the params php manually as was getting permission denial but just what I was looking for, perfect - thanks
I see this link in my 404 logs:
wp-content/plugins/wp-digi-clock/201a.js
but the file is there.