473,406 Members | 2,698 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,406 software developers and data experts.

Really need some help

I have a page with about 100 thumb nails that each shows a small page.
I would like to have a global command in the page with all the thumbs
that would make it so that when I push on the thumb nail on that page
the link is show in a pop up.

Something similar to this would be nice but as a global command as it
is not feasible to rewrite all the links.

<a href='http://eriksworld.altervista.org/pages/ghost_jpg.php'
target='_blank' onClick='window.open("http://eriksworld.altervista.org/pages/ghost_jpg.php","","width=700,height=600,resizable= no,scrollbars=no");
return false;'>Next</a>

All the best Erik
Sweden
Jul 20 '05 #1
3 1645
I hope i understrood correctly...

<script language=javascript>
<!--
function openPopUp(image) {
popup = window.open(image,"","width=500, height=500");
popup.setTitle("Image preview");
}
-->
</script>

<a href="image.jpg" onClick="openPopUp(image = this.href); return
false;">link1</a>
<a href="image2.jpg" onClick="openPopUp(image = this.href); return
false;">link2</a>

something like that

--
Janne
http://trax.to/thx/
"Erik" <st*************@hotmail.com> kirjoitti viestissä
news:b7**************************@posting.google.c om...
I have a page with about 100 thumb nails that each shows a small page.
I would like to have a global command in the page with all the thumbs
that would make it so that when I push on the thumb nail on that page
the link is show in a pop up.

Something similar to this would be nice but as a global command as it
is not feasible to rewrite all the links.

<a href='http://eriksworld.altervista.org/pages/ghost_jpg.php'
target='_blank' onClick='window.open("http://eriksworld.altervista.org/pages/ghost_jpg.php",
"","width=700,height=600,resizable=no,scrollbars=n o"); return false;'>Next</a>

All the best Erik
Sweden

Jul 20 '05 #2
"Janne Raiskila" <ol***@par.as> writes:
I hope i understrood correctly...

<script language=javascript>
This should be
<script type="text/javascript">
The type attribute is required in HTML 4.
<!--
HTML comments are not necessary in Javascript.
function openPopUp(image) {
popup = window.open(image,"","width=500, height=500");
I would make popup a local variable, i.e., start with "var popup =".

There should be no spaces in the configuation string. Some browsers
refuse to work with that.
popup.setTitle("Image preview");
I don't believe window objects have a setTitle method. The page in the
new window has (most likely) not been loaded yet when this statement
is executed, so functions on the page will not be loaded yet.
<a href="image.jpg" onClick="openPopUp(image = this.href); return
Drop "image = ", unless you need to put the href into a global
variable on this page.
something like that


Something like it :)

--
Lasse Reichstein Nielsen - lr*@hotpop.com
Art D'HTML: <URL:http://www.infimum.dk/HTML/randomArtSplit.html>
'Faith without judgement merely degrades the spirit divine.'
Jul 20 '05 #3
I was not too concise with my question. What I am asking is how I make
all the links on my page open up in a pop-up with out having to change
each of the links I have on my page.
All the best Erik

www.eriksworld.org

--
There are only 10 kinds of people. The ones who understand binary and
the ones who dont.
Jul 20 '05 #4

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

Similar topics

2
by: Naresh | last post by:
I have been having a problem and I don't know where to go for help. The microsoft support is only for a fees. Can anyone at all please at least point to a site or some place where I can hope for some...
15
by: Jeannie | last post by:
Hello group! I'm in Europe, traveling with my laptop, and I don't any compilers other than Borland C++ 5.5. available. I also don't have any manuals or help files available. Sadly, more...
0
by: TN Bella | last post by:
Hi, I am trying to get my compare validator to fire properly...Since I have panels the validator wouldn't work properly, the app would fire right but would insert the data regardless and the...
131
by: pemo | last post by:
Is C really portable? And, apologies, but this is possibly a little OT? In c.l.c we often see 'not portable' comments, but I wonder just how portable C apps really are. I don't write...
16
by: CMM | last post by:
Is it me or has anyone noticed that F1 is really dumb in VS2005. Since VB3 I have been able to click F1 on an ambiguous method in code and the IDE automatically determines the type based on the...
7
by: c#2006user | last post by:
Hi everyone. i know there is a lot of code and ive reduced it as much as i could, its a bit much to ask but i am really stuck! i've been at this for a week! this is converted from vb to c# and...
22
by: SQACSharp | last post by:
I'm trying to get the control name of an editbox in another window. The following code set the value "MyPassword" in the password EditBox but it fail to return the control name of the EditBox. ...
3
Chrisjc
by: Chrisjc | last post by:
I am not good at VB and I am taking a class for it at ITT... I am doing a program chanllenge and really really need help it is due today... and I am not good at this at all... could some one please...
1
lolixpop
by: lolixpop | last post by:
Hi everybody thanks for reading! i have a few actionscript questions that i really need help on...any help would be greatly appreciated! Okay so i came upon this tutorial:...
0
by: raylopez99 | last post by:
I ran afoul of this Compiler error CS1612 recently, when trying to modify a Point, which I had made have a property. It's pointless to do this (initially it will compile, but you'll run into...
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: 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: 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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.