473,661 Members | 2,484 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Multiple links

I have an idea but don't know if it's possible, from a technical point
of view.
Imagine to have some text.

Example
"John and Mary go to the cinema."

I'd like to have this kind of links.
By selecting "John" I can go to:
Link 1 (eg. page 1)
Link 2 (eg. page 2)
Link ...

By selecting "John and Mery" I can go to:
Link 4 (eg. page 4)
Link 5 (eg. page 5)
Link ...

So, the word John can be included in two links.
The links are multidirected.
Do you know if there is a package useful for this purpose?
On the contrary, do you have some suggestion useful to achieve this goal?
I really don't know how to start.

It could be nice to have this possibility.

Example
"John and Mary go to the cinema."

I could choose:

"[John] and Mary go to the cinema."
and then go to select among the possible "John" links.

or:

"[John and Mary] go to the cinema."
and then go to select among the possible "John and Mary" links.

What do you think?
Many thanks.

Cheers,
Nico
Dec 22 '06 #1
2 1153
Nico wrote on 22 dec 2006 in comp.lang.javas cript:
I have an idea but don't know if it's possible, from a technical point
of view.
Imagine to have some text.

Example
"John and Mary go to the cinema."

I'd like to have this kind of links.
By selecting "John" I can go to:
Link 1 (eg. page 1)
Link 2 (eg. page 2)
Link ...

By selecting "John and Mery" I can go to:
Link 4 (eg. page 4)
Link 5 (eg. page 5)
Link ...

So, the word John can be included in two links.
using javascript [because that is the subject of this NG]:

<script type='text/javascript'>
var john=false;
</script>
<span
onclick='locati on.href=(john)? "http://john":"http://extra..mary";'>
Extra words <span onclick='john=t rue;'>
John
</span>
and Mary
</span>
go to the cinema.
The links are multidirected.
eh?

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Dec 22 '06 #2

Not sure I follow what you are after rather clearly.

Danny
Dec 24 '06 #3

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

Similar topics

4
1686
by: seven | last post by:
This might be a newbie question or otherwise easy stuff for some of you, but it's tweaking me ... can't seem to get it to work right. I am working with a script that basically creates two arrays, and with a single call in the html, randomly inserts a graphic (which is linked to another page, as defined in the second array). The working example is http://seven.postmodern.com/insight/tarot/1cardreading.html What I would like to do is...
6
7795
by: Daniel Jung | last post by:
Hi This is not a "CSS I want you to do for me since my boss needs it yesterday"... I am wondering about a few things, and I am still working on this, but wanted to share it with you at this stage. Maybe you have some input, which I would appreciate. I made a tab-like display of a <ul>. It's easier shown than explained, so here is the link: http://lingo.uib.no:9002/MOO_info/main.html
0
1559
by: Fernando Nasser | last post by:
Multiple database services and multiple versions on Red Hat Linux systems The way it works is that we require a specific service script for each database service (that is listening on each port). Each of these services has a init script in /etc/init.d and a corresponding configuration file in /etc/sysconfig. We use the 'chkconfig' utility to decide if each of those services will be activated on boot or not (it manipulates links under...
11
5294
by: Mike | last post by:
Looking to find any information on how to properly configure multiple instances of DB2. This is on Win2k db2 ver 7.2. I am basically looking for information on how the multiple instance settings should configured to work, how memory is shared or not, etc. I can not seem to find any good links to this information. Thanks, Mike
5
3299
by: Scott Tilton | last post by:
I am having a terrible time getting this to work. I am hoping someone out there can help me with very specific code examples. I am trying to get the linked tables in my Access 97 database to be updated whenever the database opens. I need to have them updated based on an INI file that resides in the same directory as the current database. I do not need or want the ability to open a dialog box to pick the location. I simply want it to...
6
2522
by: Don Leverton | last post by:
Hi All, I've got a situation where I am developing an Access 97 app for a client, and am in the "beta testing" stage. I have split the app up, using the DB splitter, into front-end /back-end for the usual reason ... so I can mess with form/report revisions. Since splitting, I've had issues with re-linking the tables ... as it relates to the completetely different "My Documents" data paths on several different Win98 / Win XP computers.
0
1277
by: Mike Kingscott | last post by:
Hi all, I wonder if anyone can help? I have a need to display some data on my web page (the results of a search) for links. Here's the thing: Each link can belong to one or more category (yes, I have a many-to-many table). When the links are retrieved, I also want to retrieve the categories the link is found in. Let's say link A appears in categories X, Y, and Z, and a keyword search brings back link A - due to the way the query is...
2
2366
by: Patrick Olurotimi Ige | last post by:
When i run the code below with stored proc :- I get only the first table results :-"templates" even if i fill the dataset with another table for example category,pages etc.. Any ideas? Store procedure below:- ------------------------
3
1386
by: Nico | last post by:
I have an idea but don't know if it's possible, from a technical point of view. Imagine to have some text. Example "John and Mary go to the cinema." I'd like to have this kind of links. By selecting "John" I can go to: Link 1 (eg. page 1)
1
1275
by: Visitbazaar Info | last post by:
-- Internet - Take Advantage of Multiple Windows When Surfing SUMMARY: Stop jumping back and forth between index pages by using several browser windows. Why use one web browser window when you can have multiple? If you have an adequate amount of memory, open up several web browsers to maximize your surfing experience. One great way to do this is via a start page. Select a page from where you
0
8343
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8856
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8545
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8633
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7365
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5653
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4179
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2762
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
1747
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.