473,386 Members | 1,712 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,386 software developers and data experts.

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?
Jul 20 '05 #1
2 1689
news.frontiernet.net wrote:
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
Jul 20 '05 #2
Thank You!

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

"RIck Measham" <ri***@isite.net.au> wrote in message
news:3f***********************@news.optusnet.com.a u...
news.frontiernet.net wrote:
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

Jul 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: R.Wieser | last post by:
Hello All, I'm trying to get a "Virtual Listbox" to work. I've currently got a form, and used CreateWindowExA to create a ListBox with the LBS_OWNERDRAWFIXED and LBS_NODATA flags on it. I've...
1
by: Peter Avalos | last post by:
My goal is to create a remote installation program to rollout program installs and updates. We're a small company with about 60 workstations, so it's not worth the investment in SMS. I have the...
18
by: jrhoads23 | last post by:
Hello, I am trying to find a way to tell if an .NET windows forms Button (System.Windows.Forms.Button) is "depressed" (pushed down). For my application, I can not use a check box control set to...
1
by: SteveS | last post by:
Hello. This problem is perplexing me. I have a asp:button which runs a javascript function when it is clicked. It returns a true or false depending if a postback is needed. This works great...
2
by: Jeff | last post by:
I have an ASP.NET web page accessing a SQL database. I've used VS to build the app and stored it in the eNPTest02 directory of my localhost on my development machine. The database is on the web. ...
0
by: Terry Olsen | last post by:
I'm having problems with the following code. Any help is appreciated: I have it set up so that it listens for an incoming connection. If there is no current connection, it will connect the...
0
by: Patrick A. | last post by:
Dll written in VB.NET 2003 to start a command remotely. You can : - launch the command and wait until it's finished. (Ex. 1) - launch the command providing a timeout in seconds, it will wait...
16
by: pamelafluente | last post by:
I am still working with no success on that client/server problem. I need your help. I will submit simplified versions of my problem so we can see clearly what is going on. My model: A client...
4
by: JDS | last post by:
I am a newbie to asp.net but have done traditional vb, asp and vb.net - please forgive any dumb questions! As a test I have a very simple page (Default.aspx) with a single button which then...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.