473,765 Members | 2,137 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Return to: Two scripts one page?

1 New Member
[HTML]<!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>Reflecti on/Roundcorners Demo</title>

<script type="text/javascript" src="scripts/reflection.js"> </script>

<script type="text/javascript" src="scripts/rounded_corners _lite_inc.js"></script>

<style type="text/css">
[/HTML]
Expand|Select|Wrap|Line Numbers
  1. * {margin: 0; padding: 0;}
  2. body {
  3. font-family: Verdana, sans-serif;
  4. font-size: 0.84em;
  5. color: #fff;
  6. border-top: solid 3px #000;
  7. background: #3b3c3e;
  8. }
  9. * #bpHeader h1 a, a:link, a:visited, a:hover {text-decoration: none; font-weight: 500; color: #699;}
  10. a {text-decoration: none; font-weight: 600; color: #91d5d2;}
  11. a:link {text-decoration: none; font-weight: 600; color: #91d5d2;}
  12. a:visited {font-weight: 600; color: #09a;}
  13. a:hover {color: #fff;}
  14. /*__________________________________
  15. Page Topography
  16. __________________________________*/
  17. p { 
  18. line-height: 1.6em; 
  19. margin: 8px 6px 0.5em 6px; 
  20. padding: 0.4em 0.3em 0.5em 0.3em; 
  21. text-align: left;}
  22. p.small {
  23. font-size: 0.83em;
  24. color: #777;
  25. line-height: 1em;
  26. text-align: right;
  27. }
  28. p.medium {
  29. font-size: 0.84em;
  30. color: #899;
  31. margin: 6px 4px 0.5em 4px;
  32. padding: 0.3em 0.2em 0 0.2em;
  33. }
  34. #bpHeader h1, #bpHeader h3, .blockquote h6 {font-family: Georgia, serif;}
  35. #bpHeader h1, .blockquote h6 {
  36. font-style: italic;
  37. font-weight: 500;
  38. text-transform: lowercase;
  39. }
  40.  
  41. .floatright {
  42. float: right;
  43. font-size: 0.81em;
  44. margin-bottom: 0.5em;
  45. padding: 0.5em 2em;
  46. border-left: 1px solid #444;
  47. }
  48. .floatleft {
  49. float: left;
  50. font-size: 0.81em;
  51. margin-bottom: 0.5em;
  52. padding: 0.5em 2em;
  53. border-right: 1px solid #444;
  54. }
  55. .validation {
  56. clear: both;
  57. font-size: 0.81em;
  58. margin: 0;
  59. padding: 0.5em 0;
  60. border-top: 1px solid #444;
  61. text-align: left;
  62. }
  63. /*__________________________________
  64. Header Styling
  65. __________________________________*/
  66. #bpHeader {
  67. position: relative;
  68. width: 100%;
  69. overflow: hidden;
  70. height: 125px;
  71. margin: 0;
  72. padding: 0;
  73. border-bottom: solid 1px #699;
  74. background: #000 url('images/tunnel.png') no-repeat scroll 100% -50px;
  75. }
  76. #bpHeader h1 {
  77. font-size: 2.5em;
  78. letter-spacing: -2px;
  79. margin: 50px 0 0 150px;
  80. padding: 0;
  81. }
  82. #bpHeader h3 {
  83. font-size: 1.5em;
  84. color: #fcfbf5;
  85. font-weight: 600;
  86. letter-spacing: -1px;
  87. margin: -8px 0 0 210px;
  88. padding: 0;
  89. }
  90. /*__________________________________
  91. Internal Navigation
  92. __________________________________*/
  93. #navMenu {
  94. min-width: 760px;
  95. height: 30px;
  96. margin: 0 0 1em 0;
  97. padding: 8px 0 0 50px;
  98. border-top: solid 3px #444;
  99. border-bottom: solid 1px #555;
  100. background: #1f1f1f;
  101. }
  102. #navMenu li {
  103. float: right;
  104. list-style: none;
  105. width: 110px;
  106. margin-right: 5px;
  107. padding: 0 23px 0 13px;
  108. font-family: "Eras Medium ITC", "Lucida Sans Unicode", sans-serif;
  109. font-size: 1.2em;
  110. font-weight: 600;
  111. text-transform: lowercase;
  112. }
  113. #navMenu li a {
  114. display: inline-block;
  115. text-decoration: none;
  116. color: #444;
  117. font-weight: 600;
  118. }
  119. #navMenu li a:hover, #navMenu li#active a, #navMenu li#active a:hover {
  120. text-decoration: none;
  121. color: #030303;
  122. padding-top: 4px;
  123. border-top: solid 4px #030303;
  124. }
  125. /*__________________________________
  126. Design Display Styling
  127. __________________________________*/
  128. #Wrapper {
  129. width: 780px;
  130. display: block;
  131. margin: 0 auto 3em auto;
  132. padding: 0;
  133. text-align: center;
  134. }
  135.  
  136. fieldset {
  137. margin: 0 1.5em 2em 1.5em;
  138. padding: 0 0 0 3em;
  139. border-top: solid 1px #f4fdff;
  140. border-right: none;
  141. border-bottom: none;
  142. border-left: none;
  143. }
  144. legend {
  145. font-family: Georgia, serif;
  146. font-size: 1.3em;
  147. color: #f4fdff;
  148. font-weight: bold;
  149. font-style: italic;
  150. letter-spacing: -1px;
  151. text-transform: lowercase;
  152. margin: 0 0 0.3em 0;
  153. padding: 0.3em 0.4em 0.5em 0.3em;
  154. }
  155. .Display {
  156. margin: 0 auto;
  157. width: 100%;
  158. padding: 10px;
  159. text-align: left;
  160. border: 2px solid #3b3c3e;
  161. background: #2b2c2e;    
  162. }
  163. .Display p { 
  164. width: 90%;
  165. display: block;
  166. clear: both;
  167. font-size: 0.9em;
  168. margin: 1em auto 0 auto;
  169. padding: 30px 0;
  170. color: #fcfbf5;
  171. text-align: justify;
  172. }
  173. img {
  174. border: none;
  175. margin-bottom: 2px;
  176. }
  177.  
  178. .view1 {
  179. width: 240px;
  180. float: left;
  181. margin: 0.5em auto 0 0.4em;
  182. padding: 0;
  183. text-align: left;
  184. }
  185.  
  186. .view2 {
  187. width: 240px;
  188. float: left;
  189. margin: 0.5em auto 0 1em;
  190. padding: 0;
  191. text-align: left;
  192. }
  193.  
  194. .view3 {
  195. width: 240px;
  196. float: left;
  197. margin: 0.5em auto 0 1em;
  198. padding: 0;
  199. text-align: left;
  200. }
  201. #footer {clear: both;
  202. width: 100%;
  203. overflow: hidden;
  204. height: 75px;
  205. border-top: solid 1px #699;
  206. border-bottom: solid 3px #0f0f0f;
  207. background-color: #000;
  208. }
  209. #footer #inner {
  210. width: 760px;
  211. margin-right: auto;
  212. margin-left: auto;
  213. text-align: center;
  214. padding-top: 10px;
  215. }
  216. #footer #inner p {
  217. font-size: 0.7em;
  218. color: #eee;
  219. text-align: center;
  220. }
  221.  
[HTML]</style>
<script type="text/JavaScript">

<!-- script 1

var previousOnload = window.onload;
window.onload = function () { if(previousOnlo ad) previousOnload( ); addReflections( ); }

end script1 -->

<!-- script 2

window.onload = function() {
settings = {
tl: { radius: 20 },
tr: { radius: 20 },
bl: { radius: 20 },
br: { radius: 20 },
antiAlias: true,
autoPad: true
}

/*
Usage:

newCornersObj = new curvyCorners(se ttingsObj, classNameStr);
newCornersObj = new curvyCorners(se ttingsObj, divObj1[, divObj2[, divObj3[, . . . [, divObjN]]]]);
*/
var DisplayObject = new curvyCorners(se ttings, "Display");
DisplayObject.a pplyCornersToAl l();
}

end script 2 -->

</script>

</head>

<body>
<div id="bpHeader">
<h1 style="directio n: ltr;"><a href="blueplato .com/">blueplato </a></h1>
<h3>designStudi o</h3>
</div>
<ul id="navMenu">
<li><a href="welcome.p hp" title="Welcome" >HOME</a></li>
<li><a href="about.php " title="Focus">A bout</a></li>
<li><a href="bp_form.p hp" title="Form">Co ntact</a></li>
<li><a href="forums/bbpress" title="Discussi on">Forums</a></li>
<li id="active"><a href="#" id="current" name="current"> Designs</a></li>
</ul>
<div id="Wrapper">
<fieldset>
<legend>latestD esigns</legend>
</fieldset>
<div class="Display" >

<div class="view1">

<img class="reflect rheight20 ropacity60" src="images/wrap.png" alt="imagerefle ction.js" />
</div>
<div class="view2">
<img src="images/first.png" class="reflect rheight20 ropacity60" alt="imagerefle ction.js" />
</div>
<div class="view3">
<img src="images/black.png" class="reflect rheight20 ropacity60" alt="imagerefle ction.js" />
</div>
<p>CSS styling allows for extroadinary freedom and flexibility in web page design and layout. No longer restricted with 'Table Structure', CSS makes it possible to combine both flex(%) and fixed(px) measurements, while utilizing the maximum page space, giving new appearance and functionality to your design.

The future of web design presents many exciting advances and endless possibilities. Such freedom fuels the imagination and encourages a desire to extend the limits and go beyond!</p>
</div>
</div>
<div class="validati on"><span class="floatrig ht"><a
href="http://www.bluehost.co m/">bluehost</a></span><span
class="floatlef t"><a
href="http://validator.w3.or g/check?uri=refer er">W3C-valid
XHTML</a></span><span class="floatlef t"><a
href="http://jigsaw.w3.org/css-validator/">W3C-valid
CSS2</a></span></div>
<div id="footer">
<div id="inner">
<p><span>Copyri ght &copy; 2006-07 blueplato.com
&reg; All Rights
Reserved. A Division of blueplato Inc.</span></p>
</div>
</div>
</body>
</html>[/HTML]

I know there is a way to solve the problem of two scripts using handler 'window.onload' ,
but I am not well versed in javascript to know how this is done.

<body onload="fn1Name (args);fn2Name( )">
This is not accepted in XHTML Strict....

window.onload = function() {
if (condition) statement to execute;
fn1Name(args);
fn2Name();
}
This I don't know how to actually name the functions or the condition...
Sep 25 '07 #1
1 1372
dmjpro
2,476 Top Contributor
Welcome to TSDN.
Use code Tags while you do posting.
Read posting guidelines before posting :-)
And explain your problem little bit more.

Kind regards,
Dmjpro.
Sep 26 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

3
8820
by: Aardwolf | last post by:
I've had PHP on my Win2K server running IIs 5 for about 2 weeks now. I have an annoying problem in that I can not run the php scripts/pages locally, instead they open up in the browser as a download. By that I mean that If I access them via my lan or the net from another computer on my lan, the webpages that have php on them and end in a .php extension all run fine and work just great. BUT if I open up the browser on the IIs server...
2
8752
by: Konstantin Zakharenko | last post by:
Hello, Our QA team have running a lot of test scripts (for automated regression testing), they run them on the different databases (Oracle/MS SQL). Several of those tests are dependent on the current date/time. In order to be able to use them efficiently, we changed the current date/time on the QA database server to a specific date/time before starting the scripts, so we are sure the test scripts always run in the same environment.
3
1477
by: Unregistered | last post by:
Hello! I came across two different scripts that I wanted to combine, and I thought I wa successful until I discovered a minor glitch. What was happening was that the page that was linked to came out fine but the page where the link was was linking out to another page . Here's what my code looks like.
7
4289
by: ergobob | last post by:
Hello, I have two small PHP scripts running on a test page at: http://www.usernomics.com/ergonomic-products-accessories5.html Both scripts work perfectly when there is one script on a page. However, if I place two on the page (one above the other), the second script will not render. I get no PHP error messages - the script will just not render. I think the PHP Scripts are OK as they were automatically generated by RSS
7
1804
by: morrisdn13 | last post by:
I have encountered a very strange problem that makes it look like the page is not recreated in entirety after a postback when I turn on smartnavigation. If I click on a server control, the page is returned blank. I have a JavaScript routine displaying a session countdown in the browser statusbar that continues counting without resetting as it normally would after a postback. An error icon is displayed in the browser statusbar after the...
1
1170
by: IsMale | last post by:
Hi. I am new to web services. Could someone please help me with the scripts below? I will be parsing a GroupID to the web service. This web services will the connect to a stored procedure which will return all records belonging to the GroupID. My problem is how do i "return" the row and columns of data to the C# page that is requesting the Web Service? heres part of my Web service scripts... Thanks
4
2690
by: Nicolas R | last post by:
Hi all, Im trying to figure out how to display a 'loading' message when scripts are being executed, ie when the page is still not ready for interaction. This is for a web app which relies on javascript to insert dom elements and do stuff, so the user must know when everything is ready to interact with. I tried using an interval which checks for a specific variable (page_loading) and when its set to false then the 'loading' message is...
4
1687
by: Jonathan Wood | last post by:
I'm trying to duplicate an HTML sample I have using my ASP.NET pages. The sample contains the following within the <headtag: <script type="text/javascript" src="flashobject.js"></script> <script type="text/javascript"> // <!.indexOf('='); if( pos == -1 ) { continue; // Look for "name=value"
3
1420
by: shapper | last post by:
Hello, I am working on a web site where I have a master page. Most web site pages use this master page as base. Some scripts are used in all pages ... other just in a few pages. Should I load all scripts in master page ... I think they are cached right? Or should I load the common scripts to all pages in my master page and
0
9568
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9398
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10007
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8831
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6649
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5275
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5419
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3531
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2805
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.