Need Remote Button with sub-topics

  • Thread starter news.frontiernet.net
  • Start date
N

news.frontiernet.net

I do a community web site and would like to provide a Button/icon for other
loacal and area web sites to copy/paste on their web sites.

I want to go BEYOND a simple image, to include a mouse-over drop down menu
of subtopics. I want this to be all EXTERNAL to the web site. I mean, no
HTML codes in divs. It should all be in the .js code that wiLl be loaded
from my server. And it needs to be done WITHOUT requiring the using web site
to place ANY code in their <HEad></HEad>, NOR in their <BODY> tag to start
on page load.

I want the process to be simple, so that beginners can COPY/PASTE the code
from my web site to theirs and have it function properly, WITHOUT
requiring them to alter their own code in the <HEAD></HEAD> section or
<BODY> tag Can this be done?

Does anyone have an example?
 
R

RIck Measham

news.frontiernet.net said:
I do a community web site and would like to provide a Button/icon for
other loacal and area web sites to copy/paste on their web sites.

I want to go BEYOND a simple image, to include a mouse-over drop down menu
of subtopics. I want this to be all EXTERNAL to the web site. I mean, no
HTML codes in divs. It should all be in the .js code that wiLl be loaded
from my server. And it needs to be done WITHOUT requiring the using web
site to place ANY code in their <HEad></HEad>, NOR in their <BODY> tag to
start on page load.

I want the process to be simple, so that beginners can COPY/PASTE the code
from my web site to theirs and have it function properly, WITHOUT
requiring them to alter their own code in the <HEAD></HEAD> section or
<BODY> tag Can this be done?

Does anyone have an example?

This is a simple JavaScript version of a server-side-include. Here's the
code for their site:

<SCRIPT language="{whatever your language is}"
src="http://www.yoursite.com/js-bin/yourscript.js"></SCRIPT>

They just insert that code where they want the image to appear.

Then the code for your site will be something like:

document.write("<img src='http://www.yoursite.com/media/button.gif'
onMouseOver='show_pop_up()'");

function show_pop_up() {
// Code for poping up a menu. There's plenty around so
// just pick one for yourself.
}
//-end-

Of course there are some browsers that will not render a visitor's page
until they're able to contact your site. So if you're down, your users
might not be too happy. To get around this, they could download the image
themselves and insert it:

<SCRIPT language="{whatever your language is}"
src="http://www.yoursite.com/js-bin/yourscript.js"></SCRIPT>
<IMG src="/local/image.gif" onMouseOver="show_pop_up()">

This will load your script and do the same as above, however because the
image is on their local server it's more reliable. Of course if you're down
they still wont get the pop-up but at least the rest of their page will
load!

Maybe you could offer both services?

Cheers!
Rick
 
N

news.frontiernet.net

Thank You!

Is there an example HTML document where this process is already in use that
I could see?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top