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

Does anybody have any ideas?

I have a bunch of thumb nails on my site that open up a jpg in a new
window if you click on it. I would like to know if there is a way that
I can make it so that if you click on a particular thumb nail that the
link that is associated with it will open up in a pop up that is 700
X500. I know how to do this by defining each link (thumb nail) but
since I have about 100 thumb nail links that would be too much work.
Is there something that I can put into the <head> that will make ALL
my links in the body open up in a pop up?

The page I want to do this with is at
www.eriksworld.org
The thumb nail frame.

All the best
Erik
Sweden
Jul 20 '05 #1
4 1600
Erik <st*************@hotmail.com> wrote in message
news:b7*************************@posting.google.co m...
I have a bunch of thumb nails on my site that open up a jpg in a new
window if you click on it. I would like to know if there is a way that
I can make it so that if you click on a particular thumb nail that the
link that is associated with it will open up in a pop up that is 700
X500. I know how to do this by defining each link (thumb nail) but
since I have about 100 thumb nail links that would be too much work.
Is there something that I can put into the <head> that will make ALL
my links in the body open up in a pop up?

The page I want to do this with is at
www.eriksworld.org
The thumb nail frame.

All the best
Erik
Sweden

The following can be improved on or done differently, but
it is one possibility...

<HTML>
<HEAD>
<TITLE>POPUP PHOTOS</TITLE>
</HEAD>

<SCRIPT LANGUAGE=JAVASCRIPT>
<!--hide script from old browsers
var win1=null;

function newwin(pname, palt)
{
win1 = window.open( '', '',

'toolbar=no,location=yes,scrollbars=no,status=no,r esizable=no,width=233,heig
ht=300,location=no');
win1.document.writeln( "<IMG SRC='" + pname + "' width=233 height=300
alt='" + palt + "' >");
}
// end hiding script from old browsers -->
</SCRIPT>

<BODY>
<img src="tn_photo.jpg" alt="tn alt text" onClick="newwin('big_photo.jpg',
'alt text');" />
</BODY>
</HTML>

Jul 20 '05 #2
Erik wrote:
<SNIP>


Yes, my idea is come up with a more descriptive subject title

Jul 20 '05 #3
DU
Erik wrote:
I have a bunch of thumb nails on my site that open up a jpg in a new
window if you click on it. I would like to know if there is a way that
I can make it so that if you click on a particular thumb nail that the
link that is associated with it will open up in a pop up that is 700
X500. I know how to do this by defining each link (thumb nail) but
since I have about 100 thumb nail links that would be too much work.
Is there something that I can put into the <head> that will make ALL
my links in the body open up in a pop up?

The page I want to do this with is at
www.eriksworld.org
The thumb nail frame.

All the best
Erik
Sweden


My idea is to tell people to write descriptive, meaningful but short
subject line so that if someone ever search in the newsgroup archives
for some ideas on some explicitly defined subject line, then it will be
a lot more easier for him and others as well.

DU
--
Javascript and Browser bugs:
http://www10.brinkster.com/doctorunclear/
- Resources, help and tips for Netscape 7.x users and Composer
- Interactive demos on Popup windows, music (audio/midi) in Netscape 7.x
http://www10.brinkster.com/doctorunc...e7Section.html

Jul 20 '05 #4
Ivo
st*************@hotmail.com (Erik) wrote in message news:<b7*************************@posting.google.c om>...
I have a bunch of thumb nails on my site that open up a jpg in ...
www.eriksworld.org
The thumb nail frame.

Yes, like has been said before: better subject lines. I tried not to
be pissed off immediately and loaded your page. However, you have
disabled my contextmenu. How do you expect help if we can't even see
your code???
Like has been said before: anti-rightclick scripts are *not necessary*
for people that never right-click, and are *annoying* and nothing but
annoying for people that do. You see, I have a marvellous 'restore
right-click' bookmarklet, that even works in frames:
javascript:for(i=0;i<document.frames.length;i++)wi th(document.frames[i]){void(document.onmousedown='return%20true');void( document.oncontextmenu='return%20true');void(docum ent.onmouseup='return%20true');void(document.body. onmousedown='return%20true');void(document.body.on contextmenu='return%20true');void(document.body.on mouseup='return%20true');}

but it only works if all frames are from the same domain, which is not
the case with your pages. That 's where I stopped. I hope you read up
on window.open method meanwhile.
HTH
Ivo
Jul 20 '05 #5

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

Similar topics

4
by: Nick Moore | last post by:
I have a C# forms app that accesses an Oracle database. When 'Release' built, it runs fine from the folder that it's built into but if I copy the app's .exe and .dlls to another folder it fails with...
3
by: Clamps | last post by:
I was wondering if anybody gets similar results when attempting to query an XML Doc with an XPath query or if this is expected behavior or if I'm using something incorrectly. <xml ...>...
2
by: bobben | last post by:
Hi everybody. I don't know if this is possible, but I am looking for a way to automatically inject code. I would like to fire a Debug.Writeline() automatically when a method is invoked and...
3
by: Olivogt | last post by:
Hello, I was just puting an application on the web server but it did not work as usual... - I do develop on my notebook and move released applications to the Web server - both have Sql Server...
1
by: ~~~ .NET Ed ~~~ | last post by:
I tried to create an ASP.NET web project on my machine and this is what I did: System: WinXP Professional SP1 FS: NTFS Visual Studio .NET 2003 Framework 1.1 IIS Installed 1. I (Developer)...
3
by: Mohan | last post by:
I had tried OLEDB (IBMDA400) with .net for Transactions. Transactions are not supported at all with OLEDB and AS400. Now I am trying ODBC.NET for transaction. Rollback does not work with ODBC.NE ...
8
by: Smitha3 | last post by:
Hi all, I have made an application using team suite 2005 beta2 trial version and to distribute it i want to procure the license for deploying the project that i made in vb.net. I have used...
2
by: Laphan | last post by:
AAAAARRRRGGGGHHHH!!! Everything appears to be great in doing a web-based editor using the execCommands apart from the fact that there is no method to insert a table. I've seen somebody suggest...
2
by: André | last post by:
Hi, I made a compiled asp.net 2.0 application and i wonder whether i would be possible to decompile the application. If yes, how to protect the code from being read by anybody with that...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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...
0
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...
0
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,...

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.