PC Review


Reply
Thread Tools Rate Thread

Area in an Image Map to point to a file depending om the URL in the browser.

 
 
=?Utf-8?B?VGltIEQuIEhhbnNlbg==?=
Guest
Posts: n/a
 
      22nd Apr 2004
Hi
I want an area in an Image Map to point to a file depending om the URL in the browser.

one example

I´m using my imagemap on the page http://www.something.com/1/ here i want the area to point to:

http://www.something.com/1/document.pd

on the page http://www.something.com/2/ i´m using the same image map, but this time i want the same area to point to

http://www.something.com/2/document.pd

Notice that the filenames are the same

Is this possible - and could you give me som directions pleas

Thanks Tim
 
Reply With Quote
 
 
 
 
Thomas A. Rowe
Guest
Posts: n/a
 
      22nd Apr 2004
This could be done, but it will required the use of a server-side scripting language such as ASP,
ASP.net, PHP, CFM, etc, and maybe a database. This all depends on what is supported by your web host
and your knowledge and ability to code in the language that is support.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)
http://www.ycoln-resources.com
FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
To assist you in getting the best answers for FrontPage support see:
http://www.net-sites.com/sitebuilder/newsgroups.asp

"Tim D. Hansen" <(E-Mail Removed)> wrote in message
news:233AF18B-F304-41BC-A02E-(E-Mail Removed)...
> Hi.
> I want an area in an Image Map to point to a file depending om the URL in the browser.
>
> one example:
>
> Im using my imagemap on the page http://www.something.com/1/ here i want the area to point to:
>
> http://www.something.com/1/document.pdf
>
> on the page http://www.something.com/2/ im using the same image map, but this time i want the

same area to point to:
>
> http://www.something.com/2/document.pdf
>
> Notice that the filenames are the same!
>
> Is this possible - and could you give me som directions please
>
> Thanks Tim



 
Reply With Quote
 
Sparky Polastri
Guest
Posts: n/a
 
      22nd Apr 2004

"Tim D. Hansen" <(E-Mail Removed)> wrote in message
news:233AF18B-F304-41BC-A02E-(E-Mail Removed)...
> Hi.
> I want an area in an Image Map to point to a file depending om the URL in

the browser.
>
> one example:
>
> Im using my imagemap on the page http://www.something.com/1/ here i want

the area to point to:
>
> http://www.something.com/1/document.pdf
>
> on the page http://www.something.com/2/ im using the same image map, but

this time i want the same area to point to:
>
> http://www.something.com/2/document.pdf
>
> Notice that the filenames are the same!
>
> Is this possible - and could you give me som directions please
>
> Thanks Tim


It seems to me you could just use relative links in the image map to do
that.


 
Reply With Quote
 
Thomas A. Rowe
Guest
Posts: n/a
 
      22nd Apr 2004
Maybe I mis-read this. It seem like the issue could easily be resolve by storing the PDF in a single
folder and then using a absolute URL to the PDF, such as:

http://www.yourdomain.com/documents/document.pdf

That way it will not matter if the user is in folder 1 or folder 2.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)
http://www.ycoln-resources.com
FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
To assist you in getting the best answers for FrontPage support see:
http://www.net-sites.com/sitebuilder/newsgroups.asp

"Thomas A. Rowe" <(E-Mail Removed)> wrote in message news:%(E-Mail Removed)...
> This could be done, but it will required the use of a server-side scripting language such as ASP,
> ASP.net, PHP, CFM, etc, and maybe a database. This all depends on what is supported by your web

host
> and your knowledge and ability to code in the language that is support.
>
> --
> ==============================================
> Thomas A. Rowe (Microsoft MVP - FrontPage)
> WEBMASTER Resources(tm)
> http://www.ycoln-resources.com
> FrontPage Resources, WebCircle, MS KB Quick Links, etc.
> ==============================================
> To assist you in getting the best answers for FrontPage support see:
> http://www.net-sites.com/sitebuilder/newsgroups.asp
>
> "Tim D. Hansen" <(E-Mail Removed)> wrote in message
> news:233AF18B-F304-41BC-A02E-(E-Mail Removed)...
> > Hi.
> > I want an area in an Image Map to point to a file depending om the URL in the browser.
> >
> > one example:
> >
> > Im using my imagemap on the page http://www.something.com/1/ here i want the area to point to:
> >
> > http://www.something.com/1/document.pdf
> >
> > on the page http://www.something.com/2/ im using the same image map, but this time i want the

> same area to point to:
> >
> > http://www.something.com/2/document.pdf
> >
> > Notice that the filenames are the same!
> >
> > Is this possible - and could you give me som directions please
> >
> > Thanks Tim

>
>



 
Reply With Quote
 
Thomas A. Rowe
Guest
Posts: n/a
 
      23rd Apr 2004
Ok, I think you would need to post to the sharepoint newsgroup for help with a solution for this.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)
http://www.ycoln-resources.com
FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
To assist you in getting the best answers for FrontPage support see:
http://www.net-sites.com/sitebuilder/newsgroups.asp

"Tim D. Hansen" <(E-Mail Removed)> wrote in message
news:B13B19CA-4365-410C-B22F-(E-Mail Removed)...
> Hi Thomas
>
> Thanks for your comments. The problem is that i have to point one single link in an image map to

different documentfolders (relative to the page where i use the imagemap). The case is that i work
with Sharepoint Server 2. Here you generate several projectrooms with identical structure/documents
etc. In each of these Projectrooms i want to use the same imagemap to point to the different
documents in the projectroom. So when you are in room 1. the area in the image map point to:
>
> http://sharepointserver/room1/document1
>
> and in room 2:
>
> http://sharepointserver/room2/document1
>
> Here:
> -The imagemap is the same
> -The projectrooms have different URLs
> -But the documents in them have the same name (therefore it should be possible to make some kind

of relative link? - i think)
>
> Hope this helped ;-)



 
Reply With Quote
 
=?Utf-8?B?VGltIEQuIEhhbnNlbg==?=
Guest
Posts: n/a
 
      23rd Apr 2004
Hi everybody (Thomas, Sparky and wp

Thanks for helping. With your hints i found out that it is relative easy to make the solution i want. By using simple relative links in an html-file i get what i want. It's om the form: href="../documents/file.pdf". I didn´t think it was that easy since i work i Sharepoint server but the html works fine..

Thanks Tim
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Image/area manipulation (like hot spot or image map) Alp Bekisoglu Microsoft Access Forms 8 21st Jul 2008 02:04 PM
Define print area depending on a cell value rahmad Microsoft Excel Discussion 2 23rd Apr 2008 02:42 PM
Setting print area depending on a cell value =?Utf-8?B?Umlja19XZW5kdA==?= Microsoft Excel Programming 3 21st Oct 2004 06:59 PM
Re: Image file compression in Power Point 2003 Bill Dilworth Microsoft Powerpoint 3 24th Jul 2004 02:35 AM
How to set my IE6 browser to open image.PCX file without confirming Ben Microsoft Windows 2000 Security 0 1st Dec 2003 11:27 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:21 PM.