Adobe Scan 10-Dec-2024
Adobe Scan 10-Dec-2024
if (count <0)
count = pics.length- 1;
<0script>
</head>
<body>
<img src="1.jpg" width="200" name="imgl">
<br>
<input type="button" value-"Next" onclick="slideshow( 1y">
<input type="button" value="Back" onclick="slideshow(-1y">
<body>
<html>
Write a javascript to crente a pll-down menu with three options
|Google,
USBTE. Tahoo] once the user will select one of the options then user will be
redirected to that site.
<htm>
head
itle>HTML Fom<itle>
seript language="javascript" type="text/javascr1pt">
function getPage(choice)
page-cho ice.options|choice. selectedindex]. value.
if( page = "")
window.location=page.
Cscript>
</head>
<body>
<form name="myform" act ion="" method="post">
Select Your Favourite Website:
<select name="MenuCho ice" onchange="getPage(this)">
<option
value="htups//www.google.com">Google</opt ion>
<option
value="https://www.msbte.org. in">MSBTE</option>
<option
value="https://www.yahoo.com">Yahoo</option>
</form>
</body>
</html>
Describchow to link banner advertisement to URL with example.
The banner advertisement is the hallmark of every commercial web page. It is typicaly
positoned near the top of the web page, and its purpose is to get the visitor's attention by
doing all sorts of clever things.
loget additionalinformation, the visitor is cxpected to click the banncr so that a new web
page opcns. You can link a banner advertisement to a web page by inserting a hyperlink
into your web page that calls a JavaScript function rather than the URL ofa wcb page. The
JavaScriptthen determines the URL that is associated with the current banncr and loads the
web page that is associaled with the URL.
Example:
<html>
<head>
<title>Link Banner Ads</title
<script language-"Javascript" type-"text/javascript">
Banners new Array'1.jpg.2.jpg3.jpg')
BannerLink = new Anray
'google.com".vpt.cdu.in', 'msbte.org. in/"):
CurrentBanner = 0:
NumO1Banners =Banners.length:
function LinkBanner()
document.location. href =
"http:f/www." + BannerLink(Current Bannerl:
function DisplayBanners()
if(document.images){
CurrentBannert+
if(Current Banner == NumOfBanners)
CurrentBanner =0
<script>
<head>
<body onkoad="DisplayBanners()" >
<center
<a href="javascript: LinkBanner()><imgsrc="Lipg"
Floating Menu
Floating menus stay in a fixed position when you scrollthe page. They appear to "fNloat" on top of
the page as you scroll.
The menu below an example of a floating menu. As you scroll down the page/(frame), the menu
stays fixed in the same position on the page.
To create floating menu , we need toadd style attribute with value position:fixed.
<html>
<head>
<script>
function f1)
</script>
</head>
<body>
<br><br<br><br><br><br>
<hl>Floating Menu</h1>
<select name="s" id="s1"onchange="f10" style="position: fixed;">
<option value=""> Select Subjects/option>
<option value="0SY">OSY</option>
<option value="AJP">AJP</option>
<option value="STE">STE</option>
<OPtion value="CSS">CSS</OPtion>
</select>
<br><b» <p id="p1"> </p><br><br><br><br>cbr>cbr>cbrpsbr>
if (a.checked == true)
X+=a.value +
if (b.checked == true)
x+=b.value +
if (c.checked == true)
{
xX+=C.value +
}
if (d.checked == true)
X+=d.value +""
if (e.checked == true)
{
X+=e.value +
document.write(x)
</script>
</head>
<body>
<form name="frm 1" action="" method="post">
<P>
<input type="checkbox" name="a" value="PIC">C
<br>
<input type="checkbox" name="b" value="C++">C++
<br>
<input type="checkbox" name="c" value="java">JAVA
<br>
<inputtype="checkbox" name="d" value-"php'">PHP
<br>
<input type="checkbox" name="e" value="jscript">JAVASCRIPT
<br><br>
<input type="reset" name="r1" value="Show" onclick="show(0">
ArrowComouterA
Client Side Scripting (Unit 3)
(ABle
(ts0AEC.17001 " 2013 C'rtlned)
address,
)lalldatlon ofemall
<body Z
<btn sncicle" my honc iansbyit<lbullo?
<Schp>
Kunckon myhun chon
shi HElLO L0o k AT YoUx"