You create a Web page that contains drop-down menus that are defined by using div tags in the following code. You need to write a JavaScript function that will enable the drop-down menus to activate when the user positions the mouse over the menu title. Which code segment should you use?()
A. $(".dropdown-menu").hover( function () { $(".menu-items").slideDown(100); },function () {$(".menu-items").slideUp(100); } );
B. $(".dropdown-menu").hover( function () { $(".menu-items", this).slideDown(100); },function (){ $(".menu-items", this).slideUp(100); } );
C. $(".dropdown-menu").hover( function () { $(this)".slideDown(100); }, function () { $(this).slideUp(100); } );
D. $(".dropdown-menu").hover( function () { $("this.menu-title",).slideDown(100); },function () {$("this.menu-title",).slideUp(100); } );
查看答案
You work as an application developer at Certkiller .com. You would like to create a custom performance counter for an application that you created recently. To do this, you decide to create a custom category named ApplicationPerformance and a performance counter named HitNumber.You need to ensure that this counter is shared across numerous applications. What should you do?()
A
B
C
D
在HTML语言中,如果要对文字的字体进行修饰,应通过()
A. font-family: "宋体"
B. font-size: 9pt
C. color: #990000
D. href="../example1/2.html"
You work as an application developer at Certkiller .com. You are required to launch the App.exe process, and specify sample.txt as the input file. App.exe will then use the contents of sample.txt to establish the environment’scurrent settings.You need to ensure that the code you use meets these requirements. What should you do?()
A
B
C
D
You create a Web page that contains the following image element. You need to write a JavaScript function that will dynamically change which image is displayed. Which code segment should you use?()
A. function changeImage() {myImage.src = "image2.png"; }
B. function changeImage() { document.getElementById("myImage").src = "image2.png"; }
C. function changeImage() { getElementById("myImage").src = "image2.png"; }
D. function changeImage() { window.getElementById("myImage").src = "image2.png"; }