473,387 Members | 1,606 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

few quick basic html questions

Doing a project right now, can't figure out how to do a couple things.

1) One of my functions has a parameter (an image) that doesn't exist. The textbook suggests to use object detection "to determine whether a div element with the value of the photo parameter exists". I've looked at the section talking about object detection for a while and I still can't figure out how to do this.

.. That's the main problem, I'll probably figure out these last two before I get a response, but I'll ask anyway.

2) what function reloads the browser window

3) how can I get an image to run a function using href, without it linking to another page
Nov 30 '06 #1
3 1329
AricC
1,892 Expert 1GB
Expand|Select|Wrap|Line Numbers
  1. <!-- BEGIN SCRIPT -->
  2.  
  3.  <noscript>
  4. <meta http-equiv="refresh" content="15; url=target.html">
  5. </noscript>
  6.  
  7. <script>
  8. <!--
  9.   var version = parseInt(navigator.appVersion)
  10.   // replace is supported
  11.  
  12.   if (version>=4 || window.location.replace)
  13.   setTimeout("window.location.replace('target.html')",15000);
  14.   else
  15.     window.location.href = "target.html"
  16. // -->
  17. </script>
  18.  
  19.  <!-- END SCRIPT -->
Not sure what you mean by this post the code your trying to get working.
3) how can I get an image to run a function using href, without it linking to another page
Nov 30 '06 #2
I need to make an image follow a path around another image after it's clicked by running a function that I've already created, I just can't figure out the syntax to start it
Nov 30 '06 #3
Any suggestion for the first part?

I have a function called describeIt() that has two attributes: text and photo. Some of the times I use this function, I don't need a photo, so the text says to use object detection to find out if photo isn't blank so I can run a function to show the photo
Nov 30 '06 #4

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

Similar topics

0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.