Need Remote Button with sub-topics

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • news.frontiernet.net

    #1

    Need Remote Button with sub-topics

    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?


  • RIck Measham

    #2
    Re: Need Remote Button with sub-topics

    news.frontierne t.net wrote:
    [color=blue]
    > 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?[/color]

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

    <SCRIPT language="{what ever your language is}"
    src="http://www.yoursite.co m/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.co m/media/button.gif'
    onMouseOver='sh ow_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="{what ever your language is}"
    src="http://www.yoursite.co m/js-bin/yourscript.js"> </SCRIPT>
    <IMG src="/local/image.gif" onMouseOver="sh ow_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

    Comment

    • news.frontiernet.net

      #3
      Re: Need Remote Button with sub-topics

      Thank You!

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

      "RIck Measham" <rickm@isite.ne t.au> wrote in message
      news:3f6655ff$0 $14559$afc38c87 @news.optusnet. com.au...[color=blue]
      > news.frontierne t.net wrote:
      >[color=green]
      > > 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[/color][/color]
      menu[color=blue][color=green]
      > > 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[/color][/color]
      to[color=blue][color=green]
      > > start on page load.
      > >
      > > I want the process to be simple, so that beginners can COPY/PASTE the[/color][/color]
      code[color=blue][color=green]
      > > 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?[/color]
      >
      > This is a simple JavaScript version of a server-side-include. Here's the
      > code for their site:
      >
      > <SCRIPT language="{what ever your language is}"
      > src="http://www.yoursite.co m/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.co m/media/button.gif'
      > onMouseOver='sh ow_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="{what ever your language is}"
      > src="http://www.yoursite.co m/js-bin/yourscript.js"> </SCRIPT>
      > <IMG src="/local/image.gif" onMouseOver="sh ow_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[/color]
      down[color=blue]
      > 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[/color]


      Comment

      Working...