FrontPage 2003 Pop-Up Windows

D

dkw614

I have created pop-up windows on mouse click using the behaviors pane. No
problem there. However, each window comes up with the MS Explorer title and
a warning triangle, as well. I want to eliminate the title, and change it to
a title of my own. And I want to either replace the warning triangle graphic
with a graphic of my own, or eliminate it completely. I've searched the
knowledge base, and can't find anything to assist. I've looked at the code,
but can't see anything that would allow me to delete or replace these
components. Can you help? Here is a line of code where the pop-up window
lives:

<img border="0" src="blue%20star_small.jpg" xthumbnail-orig-image="blue
star.jpg" width="75" height="56" onclick="FP_popUpMsg('As a Perfect Partner,
you ARE the lender - and benefit from correspondent pricing and products that
keep you both profitable and more competitive in the marketplace.')">
 
A

Andrew Murray

I think you're talking about "Javascript Alert" box not the "Popup Window"
behaviour. Pop up windows have no such warning triangle.

However, you can't change it - it is a pre-programmed thing.

If you mean you want to create one of the "alerts" other than the above,
such as those you seen in Windows, e.g.:

"Critical" (red circle, white "X")
"Warning"(yellow triangle/exclamation mark)
"Question" (green circle/question mark) and
"Information" (blue "speech bubble/lower case "i".)

As far as I know, Javascript only offers the Exclamation/Alert box.

You can probably create your own, making a graphic of the symbol, and then
creating a popup windows with Jimco's Spawn (or the popup window behaviour
in FP2003).
 
D

dkw614

Andrew,
Thank you for your speedy response. But, no, I don't want to create an
alert ... I want to create a simple pop up window that appears on mouse click
and has text inside. I used the pop up behavior, but the alert is what I
got. How do I do this the right way?
Thank you, in advance.
dkw
 
D

dkw614

Okay, maybe I'm not explaining myself correctly ... let me try again ...
I downloaded the spawn software you recommended, and it didn't do what I
wanted, either.
I'm not looking to create a popup window that leads to another url ... I
just want to create a graphic, click on it, and when I do, have a small box
appear on the same page with a small amount of text in it. Then, when I
click the "OK" button, it would go away.
Is there any way to do this in FrontPage 2003 ... or is there another 3rd
party software that does this? I am not a code-writing wizard.
Thank you for your kindness.
 
T

Trevor L.

dkw614 said:
Okay, maybe I'm not explaining myself correctly ... let me try again
...
I downloaded the spawn software you recommended, and it didn't do
what I wanted, either.
I'm not looking to create a popup window that leads to another url
... I just want to create a graphic, click on it, and when I do, have
a small box appear on the same page with a small amount of text in
it. Then, when I click the "OK" button, it would go away.
Is there any way to do this in FrontPage 2003 ... or is there another
3rd party software that does this? I am not a code-writing wizard.
Thank you for your kindness.

This is not hard to do, using JS
<img ........... onclick="opennewwindow()">

opennewwindow() would be a JS function which opens a small window containing
the text and an OK button to close it. I would probably use spawnJimco to
open the window. I'll write it and post it later this arvo (afternoon for
non-Aussies)
 
T

Trevor L.

Trevor said:
This is not hard to do, using JS
<img ........... onclick="opennewwindow()">

opennewwindow() would be a JS function which opens a small window
containing the text and an OK button to close it. I would probably
use spawnJimco to open the window. I'll write it and post it later
this arvo (afternoon for non-Aussies)

I tried and failed to do what I suggested.

I can't understand why, it is so straight forward, so I may return to it
tomorrow.
 
T

Trevor L.

Trevor said:
This is not hard to do, using JS
<img ........... onclick="opennewwindow()">

opennewwindow() would be a JS function which opens a small window
containing the text and an OK button to close it. I would probably
use spawnJimco to open the window. I'll write it and post it later
this arvo (afternoon for non-Aussies)

Just to make myself feel better after I failed with my last try, here is
some code which opens some text when an element (in this case text) is
hovered over and then closes it when the mouse is moved away.

You don't even need to click to remove the text.

Just change the text (e.g. Item 1 or Item2) to an image and it should work
fine.

Please post back if this suits your purpose.

<html>
<head>
<script type="text/javascript">
function hideit(elid,hide)
{
if (hide != "show")
document.getElementById(elid).style.display="none"
else
document.getElementById(elid).style.display="block"
}
</script>
</head>
<body>
<div style="float:left">
<table>
<tr>
<td valign="top" onmouseover="hideit('row1','show')"
onmouseout="hideit('row1','hide')">
Item 1
</td>
</tr>
<tr>
<td valign="top" onmouseover="hideit('row2','show')"
onmouseout="hideit('row2','hide')">
Item 2
</td>
</tr>
</table>
</div>
<div>
<table border="1">
<tr>
<td id="row1" style="display:none">
Item 1 Full description<br>
Blah blah blah <br>
Blah blah blah <br>
Blah blah blah <br>
</td>
<td id="row2" style="display:none">
Item 2 Full description<br>
Blah blah blah <br>
Blah blah blah <br>
Blah blah blah <br>
</td>
</tr>
</table>
</div>
</body>
</html>
 
A

Andrew Murray

Trevor L. said:
This is not hard to do, using JS
<img ........... onclick="opennewwindow()">

opennewwindow() would be a JS function which opens a small window
containing the text and an OK button to close it. I would probably use
spawnJimco to open the window. I'll write it and post it later this arvo
(afternoon for non-Aussies)
--
Cheers,
Trevor L.
Website: http://tandcl.homemail.com.au
Trevor we've already been there....that's not what the OP was after
apparently.

Tom Willett has suggested DHTML menus....but that's not the issue here
either.
 
A

Andrew Murray

What has DHTML menus got to do with the OP's original question? (Pop-up
Windows).

The OP doesn't want the OpenWindow behaviour or the Spawn plugin popup
window, they want something like the Javascript alert box, but so they can
customise the title bar and the symbol and not have the yellow
triangle/exclamation point).

I've already exlained it (probably) can't be done. Javascript (only) has
the "alert();" function which brings up the yellow triangle alert box.

Maybe Vbscript can do it.(??)



Tom [Pepper] Willett said:
You need to Google for DHTML menus.
--
Tom [Pepper] Willett
Microsoft MVP - FrontPage
FrontPage Support: http://www.frontpagemvps.com/
----------
dkw614 said:
Okay, maybe I'm not explaining myself correctly ... let me try again ...
I downloaded the spawn software you recommended, and it didn't do what I
wanted, either.
I'm not looking to create a popup window that leads to another url ... I
just want to create a graphic, click on it, and when I do, have a small
box
appear on the same page with a small amount of text in it. Then, when I
click the "OK" button, it would go away.
Is there any way to do this in FrontPage 2003 ... or is there another 3rd
party software that does this? I am not a code-writing wizard.
Thank you for your kindness.
 
A

Andrew Murray

If you're not looking to do popup windows - why does your subject line say
"Frontpage 2003 Popu-up Windows" ? You might be confused, I certainly am!.

I thought I may have sorted that out saying you need to use the "Javascript
Alert" behaviour - but apparently that's not what you want either....?

If this is the type of thing you mean:
http://www.murraywebs.com/images/alert_box.gif then it is done as I have
already described using the Popup Window Behaviour in FP2003.

Type the text you want, then selected it then go to Format > Behaviours >
Popup Message.
In the Task Pane (should be on the RHS of the screen) drop down the "Insert"
button > go to the Popup Message option

then type in the message. if need be change the "event" to "onclick" if it
is sitting on "OnLoad".

Click OK out of all those boxes.

Preview the page, and click the text, it should make the box come up.

Now you can apply an actual link to that text as well, and the box will come
up first, and only went you click OK will it go to the other page or
external site. This is handy if you want to say "This link is external to
the current site. Click OK to continue".

Unfortunately there's no further flexibility to say "OK" or "Cancel"
although the Visual Basic equivalent might offer this although FP
2003doesn't do this through the GUI.

I hope this might clear up the issue.





Okay, maybe I'm not explaining myself correctly ... let me try again ...
I downloaded the spawn software you recommended, and it didn't do what I
wanted, either.
I'm not looking to create a popup window that leads to another url ... I
just want to create a graphic, click on it, and when I do, have a small box
appear on the same page with a small amount of text in it. Then, when I
click the "OK" button, it would go away.
Is there any way to do this in FrontPage 2003 ... or is there another 3rd
party software that does this? I am not a code-writing wizard.
Thank you for your kindness.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top