Log in

View Full Version : Problems to get popup working



ozzie123
05-31-2010, 03:07 PM
I've created an html page which is supposed to open as a popup window when a text link is clicked. I can't seem to get it to work though. The link is on this page http://www.solefitorthotics.com/testsite/services.html in the last sentence of text (must scroll to get there). I've managed to get two popups to work when you click on the "Legal notice" and "privacy policy" links. I want the same thing to happen in the "Click here to read about the Solefit Experience!" but can't for the life of me figure out why it won't work.

coothead
05-31-2010, 10:20 PM
Hi there ozzie123,

I think that you will find the cause of your woes here...


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/contentpages.dwt" codeOutsideHTMLIsLocked="false" -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<!-- InstanceBeginEditable name="doctitle" -->
<title>Solefit Orthotics: Services</title>
<link rel="stylesheet" href="css/lightbox.css" type="text/css" media="screen" />

<script type="text/javascript" src="prototype.js"></script>
<script type="text/javascript" src="scriptaculous.js?load=effects,builder"></script>
<script type="text/javascript" src="lightbox.js"></script>
<script type="text/javascript">
<!--
<!-- InstanceEndEditable -->
<script type="text/javascript">
<!--
function MM_swapImgRestore() { //v3.0


...which when removed will effect a cure. ;)

coothead

ozzie123
06-01-2010, 03:05 AM
Wow, you mean I need to eliminate all of that code to make things work?

ok, I did as you said and it worked!!! Thanks so much!!!!! :)

coothead
06-01-2010, 09:14 AM
Hi there ozzie123,

Perhaps you are color blind and misunderstood my post. ;)

I was suggesting that you just remove the code snippet highlighted in red...

<script type="text/javascript">
<!--.
The rest of the code was only there to help indicate its position in your document. :D

coothead

ozzie123
06-04-2010, 01:56 PM
Another quick question. Now that I have the popup window working, I've noticed that the text will not stay within the borders when it is viewed in IE. It's fine in Safari and FF but, as usual, IE screws things up. Any ideas what could be wrong?

coothead
06-04-2010, 03:05 PM
Hi there ozzie123,

the text did not stay within the background-image, for me, in IE, Firefox, Safari or Opera. :eek:

Adding this to your style sheet...


#experiencetext {
display:inline; /* this is for IE */
}
#experiencetext p {
line-height:14px;
}

...effected a cure. ;)

coothead

ozzie123
06-04-2010, 04:27 PM
Thanks Coothead. I guess I should have said that I was previewing on a Mac - which tends to be more forgiving than a pc. Thanks for the fix!

coothead
06-04-2010, 06:06 PM
No problem, you're very welcome. ;)