Hello all,
I hope someone can help me with this problem I have, I found this code snippet on the net but can’t get it to work the way I want it to.
Using the below script will open google on another page & I want it to open on the same page in a lytebox.
[code=php]<script type=”text/javascript”>
<!–
function myPopup() {
window.open( <a
rev=”width: 400px; height: 300px; scrolling: no;”>http://www.google.com</a> )
}
//–>
</script>
This is the button command used to call it up.
<input type=”button” onClick=”myPopup()” value=”Google”>
I don’t need to use the width & height that is seen above, as this can be done from the lytebox CSS, but for some reason can’t remove it, If I do the button won’t work? If I try to add rel=”lyteframe” to the above it won’t work either.
This is the original code from the lytebox site, but it didn’t call up google for me, just an error
[code=php]<a href=”http://www.google.com” rel=”lyteframe” title=”Search Google”
rev=”width: 400px; height: 300px; scrolling: no;”>Google Search</a>
If someone can help, it would be much appreciated.
Chri5