![]() |
Page Preview code
I found this website:
http://psoug.org/snippet/Javascript-...-Hover_216.htm Which contains the javascript code for having a page preview open up when you mouse over a link. Right now I have the following being echoed to create a link from two fields in my database: PHP Code:
Code:
<a href="#" onMouseOver="toggleDiv('div1',1,'http://www.google.com')" onMouseOut="toggleDiv('div1',0,'http://www.google.com')">Link 1!</a>Thanks! |
I'll take a shot at it ...
PHP Code:
. |
That code is ancient. Even though it states it was last edited in 2009, it will have been many years before that!
[language="JavaScript", capitalised TAGS, document.layers are the clues.] I suggest that you find more recent code before attempting to merge it with yours. |
Andrew is correct ... maybe AJAX (some PHP/JQuery) would be better.
I don't have an example to show. |
Quote:
Thanks anyways, I'll keep looking. FYI, thanks for taking a shot at merging the code. When I uploaded I ended up with the following error: Code:
Parse error: syntax error, unexpected 'div1' (T_STRING), expecting ',' or ';' in /homepages |
Try this:
PHP Code:
. |
| All times are GMT +1. The time now is 05:23 AM. |
Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.