By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,481 Members | 1,211 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,481 IT Pros & Developers. It's quick & easy.

few quick basic html questions

P: 8
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
Share this Question
Share on Google+
3 Replies


Expert 100+
P: 1,892
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

P: 8
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

P: 8
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

Post your reply

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