![]() |
![]() |
||||||
|
|||||||
| Tags: change, links, menu, spry |
![]() |
|
|||
|
I have a Spry Horizontal Menu on my page, and have a few questions on creating
customized Links: - I know how to add a Link to my Reports, Pages, etc using the Link Properties box - I also know how to open the Link in a _blank page using the Target property box But - How do I change the Menu Link in code to open my new page in a smaller, new window? (Right now, the TicketSummaryAcct.cfm page opens up fine, in a new "full-sized" window) Here is the code currently listed under that Menu button: -------------------------------------------------------------------------------- - [LI]<a href ="reports/TicketSummaryAcct.cfm" title="Click here to print the report by Account Number to PDF" target=>_blank">by Acct# Prompt</a></li> -------------------------------------------------------------------------------- - Thanks, jlig |
| Sponsored Links |
|
|||
|
In the header of the webpage:
<script type="text/javascript"> function popUp(URL) { day = new Date(); id = day.getTime(); eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,men ubar=0,resizable=0,width=350,h eight=300');"); } </script> in the link section: javascript opUp('reports/TicketSummaryAcct.cfm')don't use a target attribute, as it will break the javascript in my experience. |
|
|||
|
Thank you saviornt,
That is exactly what I was looking for. I noticed I could change the resizable=0 to a 1 (to allow the user to resize if necessary) I also wondered if there is an attribute to make it "Stay on Top of other windows?" or make it Modal? Thanks for the excellent tip! jlig |
|
|||
|
for the print button, just use a
onClick="window.close()" If you want it to stay on top of the other windows, you can also do a hidden / visible DIV. I've had limited success (namely I can't figure out how to position it relative to a users computer screen size). |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
- Contact Us
-|-
Adobe Dreamweaver Forums -|-
Archive -|-
Top -|-Rules/Disclaimer-|-Help/Support-|-Advertise