| <?xml version='1.0'?> |
| <!-- |
| |
| Licensed to the Apache Software Foundation (ASF) under one |
| or more contributor license agreements. See the NOTICE file |
| distributed with this work for additional information |
| regarding copyright ownership. The ASF licenses this file |
| to you under the Apache License, Version 2.0 (the |
| "License"); you may not use this file except in compliance |
| with the License. You may obtain a copy of the License at |
| |
| http://www.apache.org/licenses/LICENSE-2.0 |
| |
| Unless required by applicable law or agreed to in writing, |
| software distributed under the License is distributed on an |
| "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| KIND, either express or implied. See the License for the |
| specific language governing permissions and limitations |
| under the License. |
| |
| --> |
| |
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" |
| "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> |
| |
| <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> |
| <head> |
| <title>alert message - example</title> |
| |
| <link href="/style/style.css" media="screen" rel="stylesheet" type="text/css" /> |
| <link href="./style/demo.css" media="screen" rel="stylesheet" type="text/css" /> |
| <link href="/yui/container/assets/container-core.css" rel="stylesheet" type="text/css"/> |
| <script src="/jquery/jquery-1.3.2.min.js" type="text/javascript" /> |
| <script src="/yui/yahoo-dom-event/yahoo-dom-event.js" type="text/javascript"/> |
| <script src="/yui/element/element-min.js" type="text/javascript"/> |
| <script src="/yui/container/container-min.js" type="text/javascript"/> |
| <script src="/scripts/alert-message.js" type="text/javascript"/> |
| <script type="text/javascript"> |
| function showAlert() { |
| |
| } |
| </script> |
| </head> |
| |
| <body> |
| |
| |
| <!-- content --> |
| <div id="tx-content" class="demo"> |
| |
| <div id="demo"> |
| <h3>Description</h3> |
| |
| |
| <h3>Alert</h3> |
| |
| <div> |
| <br/> |
| <br/> |
| <div style="display: none"> |
| <div id="myOverlayBody">body</div> |
| </div> |
| <div> |
| <a href="#" onclick="AlertMessage.show(function(){alert('done');}, |
| 'This is a test alert', 'Test Alert', 'Yes', 'No')">click here to show alert.</a> <br/> |
| </div> |
| <br/> |
| <br/> |
| |
| |
| The following css and scripts have to be included: |
| <pre> |
| <link href="/yui/container/assets/container-core.css" rel="stylesheet" type="text/css"/> |
| <script src="/jquery/jquery-1.3.2.min.js" type="text/javascript" /> |
| <script src="/yui/yahoo-dom-event/yahoo-dom-event.js" type="text/javascript"/> |
| <script src="/yui/element/element-min.js" type="text/javascript"/> |
| <script src="/yui/container/container-min.js" type="text/javascript"/> |
| <script src="/scripts/alert-message.js" type="text/javascript"/> |
| </pre> |
| <br/> |
| <br/> |
| e.g. |
| <pre> |
| ... |
| <div> |
| <a href="#" onclick="AlertMessage.show(function(){alert('done');}, |
| 'This is a test alert', 'Test Alert', 'Yes', 'No')">click here to add sho alert </a> <br/> |
| </div> |
| ... |
| </pre> |
| </div> |
| |
| </div> |
| </div> |
| <!-- // content --> |
| |
| </body> |
| </html> |
| |