Homework

Homework Questions? Ask a Tutor for Answers ASAP

Ask an Expert,
Get an Answer ASAP!

In gallery.js, create a function named switchPix, and assign…

Customer Question
In gallery.js, create a function...
In gallery.js, create a function named switchPix, and assign the names file and desc to values passed to the function.
Add a statement to the function that sets the value of the HTML code for the element with the id pix to the text <img src="images/, followed by the value of the file attribute, followed by .jpg" width="480" height="270" alt=", followed by the value of the desc attribute, followed by ">. (Hint: Remember to use the \ character before any quote character that should appear in the HTML code.)
In nearby.html, add code that loads the contents of the gallery.js file. Add an event handler to the a element for the text Asian Art Museum that responds to the mouse pointer moving over the element to call the switchPix function, passing the values ′asian′,′Asian Art Museum′. Add a second event handler that responds to the link being selected to call the same function with the same values. (Note: The second event handler enables users navigating the Web page with a keyboard to trigger the images to change.)
Repeat Step d to add event handlers to the remaining three links to call the switchPix function, passing the following values:
link text values
City Hall 'cityhall',San Francisco City Hall'
Heart of the City Farmer's Market 'market','Civic Center Farmers Market'
Cable Car Turnaround 'cablecar','Cable Car turnaround'
Open nearby.html in your browser, then move your mouse pointer over the list of links and verify that the image on the right side of the page changes depending on which link you’re pointing to. If necessary, research the keyboard shortcut for your browser that allows moving through the links in a Web page, then use the shortcut to navigate through the links and verify that the same image switch takes place based on the link selected.
Submitted: 2 years ago.Category: Homework
Show More
Show Less
Ask Your Own Homework Question
nearby.txt
nearby.txt
galleryjs.txt
galleryjs.txt
asian.jpgasian.jpgcablecar.jpgcablecar.jpgcityhall.jpgcityhall.jpgmarket.jpgmarket.jpg
Customer reply replied 2 years ago
Here's what I have come up with for the function: function switchPix(file,desc){
document.getElementById('pix').innerHTML = ''
}and in my html file :
  • Asian Art Museum

  • City Hall

  • Heart of the City Farmer's Market

  • Cable Car turnaround

  • But it doesn't work. What have I done wrong?
    Answered in 1 day by:
    3/7/2016
    Tutor: Mr. Gregory White, Professor replied 2 years ago
    Mr. Gregory White
    Category: Homework
    Satisfied Customers: 5,240
    Experience: M.A., M.S. Education / Educational Administration
    Verified

    Hello, my name is Greg.

    I see this might be time sensitive.

    Do you still need this answered?

    Ask Your Own Homework Question
    Customer reply replied 2 years ago
    but its not time sensitive it is not due until Saturday March 19.
    Tutor: Mr. Gregory White, Professor replied 2 years ago

    After going through my resources, I do not have what is necessary to complete at this time.

    I am opting out and opening up to the other professionals and messaging a couple who might be able to help.

    Someone should be with you shortly.

    Ask Your Own Homework Question
    Was this answer helpful?

    How JustAnswer works

    step-image
    Describe your issueThe assistant will guide you
    step-image
    Chat 1:1 with a tutorLicensed Experts are available 24/7
    step-image
    100% satisfaction guaranteeGet all the answers you need
    Ask Scott Your Own Question
    Scott
    Scott
    Scott, MIT Graduate
    Category: Homework
    Satisfied Customers: 3,040
    3,040 Satisfied Customers
    Experience: MIT Graduate (Math, Programming, Science, and Music)

    Scott is online now

    A new question is answered every 9 seconds

    How JustAnswer works:

    • Ask an ExpertExperts are full of valuable knowledge and are ready to help with any question. Credentials confirmed by a Fortune 500 verification firm.
    • Get a Professional AnswerVia email, text message, or notification as you wait on our site. Ask follow up questions if you need to.
    • 100% Satisfaction GuaranteeRate the answer you receive.

    JustAnswer in the News:

    Ask-a-doc Web sites: If you've got a quick question, you can try to get an answer from sites that say they have various specialists on hand to give quick answers... Justanswer.com.
    JustAnswer.com...has seen a spike since October in legal questions from readers about layoffs, unemployment and severance.
    Web sites like justanswer.com/legal
    ...leave nothing to chance.
    Traffic on JustAnswer rose 14 percent...and had nearly 400,000 page views in 30 days...inquiries related to stress, high blood pressure, drinking and heart pain jumped 33 percent.
    Tory Johnson, GMA Workplace Contributor, discusses work-from-home jobs, such as JustAnswer in which verified Experts answer people’s questions.
    I will tell you that...the things you have to go through to be an Expert are quite rigorous.

    What Customers are Saying:

    Wonderful service, prompt, efficient, and accurate. Couldn't have asked for more. I cannot thank you enough for your help.

    Mary C.Freshfield, Liverpool, UK

    This expert is wonderful. They truly know what they are talking about, and they actually care about you. They really helped put my nerves at ease. Thank you so much!!!!

    AlexLos Angeles, CA

    Thank you for all your help. It is nice to know that this service is here for people like myself, who need answers fast and are not sure who to consult.

    GPHesperia, CA

    I couldn't be more satisfied! This is the site I will always come to when I need a second opinion.

    JustinKernersville, NC

    Just let me say that this encounter has been entirely professional and most helpful. I liked that I could ask additional questions and get answered in a very short turn around.

    EstherWoodstock, NY

    Thank you so much for taking your time and knowledge to support my concerns. Not only did you answer my questions, you even took it a step further with replying with more pertinent information I needed to know.

    RobinElkton, Maryland

    He answered my question promptly and gave me accurate, detailed information. If all of your experts are half as good, you have a great thing going here.

    DianeDallas, TX

    < Previous | Next >

    Meet the Experts:

    LogicPro

    LogicPro

    Engineer

    5,894 satisfied customers

    Expert in Java C++ C C# VB Javascript Design SQL HTML

    Manal Elkhoshkhany

    Manal Elkhoshkhany

    Tutor

    4,556 satisfied customers

    More than 5000 online tutoring sessions.

    Linda_us

    Linda_us

    Finance, Accounts & Homework Tutor

    3,138 satisfied customers

    Post Graduate Diploma in Management (MBA)

    Chris M.

    Chris M.

    M.S.W. Social Work

    2,699 satisfied customers

    Master's Degree, strong math and writing skills, experience in one-on-one tutoring (college English)

    F. Naz

    F. Naz

    Chartered Accountant

    2,194 satisfied customers

    Experience with chartered accountancy

    Bizhelp

    Bizhelp

    CPA

    1,887 satisfied customers

    Bachelors Degree and CPA with Accounting work experience

    Seanna

    Seanna

    Tutor

    1,781 satisfied customers

    3,000+ satisfied customers, all topics, A+ work

    < Previous | Next >

    Related Homework Questions
    1.Code writing The weight of water is 62.42796 pounds per
    1.Code writing The weight of water is 62.42796 pounds per cubic foot.Write a complete C++ program to input the length, width, and depth of a pool in feet. Compute the volume (Volume is the length time… read more
    LogicPro
    LogicPro
    Engineer
    Bachelor of Technology
    5,894 satisfied customers
    You have probably come across Web sites that display an advertisement
    You have probably come across Web sites that display an advertisement from a sponsor for a period of time before being redirected to the page you originally requested. Create a similar ad for a real e… read more
    TheDoctor
    TheDoctor
    Software Engineer
    Master\u0027s Degree
    9 satisfied customers
    In this exercise, you'll develop an Image Gallery application
    In this exercise, you'll develop an Image Gallery application that displays different images when the user clicks on the links at the top of the page. This works like the Image Swap application of fig… read more
    Mr. Gregory White
    Mr. Gregory White
    Professor
    5,240 satisfied customers
    In this exercise, you'll develop an Image Gallery application
    In this exercise, you'll develop an Image Gallery application that displays different images when the user clicks on the links at the top of the page. This works like the Image Swap application of fig… read more
    Mr. Gregory White
    Mr. Gregory White
    Professor
    5,240 satisfied customers
    I can't seem to get a going on this problem: You have probably come across Web sites
    I can't seem to get a going on this problem: You have probably come across Web sites that display an advertisement from a sponsor for a period of time before being redirected to the page you originall… read more
    TheDoctor
    TheDoctor
    Software Engineer
    Master\u0027s Degree
    9 satisfied customers
    Hello please I need your help .... last homework you give me
    Hello please I need your help .... last homework you give me the answer but they gave me a Zero Feedback comments Program Does Not Work - Would you be able to explain your code? -Use of Topics Not Cov… read more
    LogicPro
    LogicPro
    Engineer
    Bachelor of Technology
    5,894 satisfied customers
    Can someone help me with this project?1. Use your text
    Can someone help me with this project? 1. Use your text editor to open the carttxt.js, shoptxt.js, and spicetxt.htm files attached to this assignment, enter your name and the date in the comment secti… read more
    Expert
    Expert
    Hello I am looking for the solution to the below question,I
    Hello I am looking for the solution to the below question,I know the solution is locked but when paid $3 but still unable to access the same: You have probably come across Web sites that display an ad… read more
    Mr. Gregory White
    Mr. Gregory White
    Professor
    5,240 satisfied customers
    The-PC-Guy Only "2" 2. Miles Per Gallon. Instructions
    The-PC-Guy Only "2" 2. Miles Per Gallon. Instructions Create a Web page that you can use to calculate miles per gallon. Add a form to the Web page that contains four text elements: starting mileage, e… read more
    The-PC-Guy
    The-PC-Guy
    Bachelor\u0027s Degree
    630 satisfied customers
    I have a webpage project and need to add JavaScript to HTML
    I have a webpage project and need to add JavaScript to HTML pages that will include the items below • One or more JavaScript functions that return a value • One or more arrays • For or while loops • C… read more
    TheDoctor
    TheDoctor
    Software Engineer
    Master\u0027s Degree
    9 satisfied customers
    You answered the below question and I need this answer also
    You answered the below question and I need this answer also please: A Web page without JavaScript is static. That is, the displayed content does not change once the browser loads the Web page. By usin… read more
    R.R. Jha
    R.R. Jha
    Bachelor\u0027s Degree
    150 satisfied customers
    I will be posting a list of questions & answers in the next
    I will be posting a list of questions & answers in the next 30 minutes here in a follow-up post.. They are pertaining to Visual Basic 2008. I will be looking for correct answers in a given amount of t… read more
    jatechexpert
    jatechexpert
    Master\u0027s Degree
    1 satisfied customers
    http://wikisend.com/download/214268/Tutorial 12 Case Problem
    http://wikisend.com/download/214268/Tutorial 12 Case Problem 1.doc http://wikisend.com/download/375926/case1.zip Bernard has already written the HTML code, the style sheet, and a CGI script in Perl to… read more
    TheDoctor
    TheDoctor
    Software Engineer
    Master\u0027s Degree
    9 satisfied customers
    For this assignment, you will take on the role of an investigative
    •For this assignment, you will take on the role of an investigative journalist by using the Internet to seek out different kinds of artworks including art that is not conventionally considered to be a… read more
    BMW
    BMW
    Post-Doctoral Degree
    1 satisfied customers
    For Lizabeth br / For this project, we will give this detailed
    "For Lizabeth" For this project, we will give this detailed analysis to a piece of architecture and a work of art. However, we will not review this in museums or art books, but we will examine art in … read more
    10cowife
    10cowife
    owner
    Bachelor\u0027s Degree
    35 satisfied customers
    For this project, we will give this detailed analysis to a
    "For Lizabeth" For this project, we will give this detailed analysis to a piece of architecture and a work of art. However, we will not review this in museums or art books, but we will examine art in … read more
    10cowife
    10cowife
    owner
    Bachelor\u0027s Degree
    35 satisfied customers
    400 - 700 words (not including references) Points Possible
    400 - 700 words (not including references) Points Possible: 100 Due Date: 5/3/2009 11:59:59 PM On the Internet, look up and list two or more definitions of the word "art" from different reliable sourc… read more
    Instructor Dee
    Instructor Dee
    Senior Residential Appraiser
    Associate Degree
    72 satisfied customers
    On the Internet, look up and list two or more definitions of
    On the Internet, look up and list two or more definitions of the word "art" from different reliable sources. Be sure to properly quote and cite these definitions. See the "Resource Links" (in Course M… read more
    ehabtutor
    ehabtutor
    C.E.O
    Bachelor\u0027s Degree
    12 satisfied customers
    Disclaimer: Information in questions, answers, and other posts on this site ("Posts") comes from individual users, not JustAnswer; JustAnswer is not responsible for Posts. Posts are for general information, are not intended to substitute for informed professional advice (medical, legal, veterinary, financial, etc.), or to establish a professional-client relationship. The site and services are provided "as is" with no warranty or representations by JustAnswer regarding the qualifications of Experts. To see what credentials have been verified by a third-party service, please click on the "Verified" symbol in some Experts' profiles. JustAnswer is not intended or designed for EMERGENCY questions which should be directed immediately by telephone or in-person to qualified professionals.

    Disclaimer: Information in questions, answers, and other posts on this site ("Posts") comes from individual users, not JustAnswer; JustAnswer is not responsible for Posts. Posts are for general information, are not intended to substitute for informed professional advice (medical, legal, veterinary, financial, etc.), or to establish a professional-client relationship. The site and services are provided "as is" with no warranty or representations by JustAnswer regarding the qualifications of Experts. To see what credentials have been verified by a third-party service, please click on the "Verified" symbol in some Experts' profiles. JustAnswer is not intended or designed for EMERGENCY questions which should be directed immediately by telephone or in-person to qualified professionals.

    Show MoreShow Less

    Ask Your Question

    x