473,396 Members | 2,010 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.

how pop up another image in the html by clicking certain image

236 100+
Hi All,

I have this html code below. Just like to check what is a good way to pop up an same image of its own(without new html page, but an image on top of current html page) by click on the image of the original html page?

Sample code is below.


Thanks in advance,
Andrew



Expand|Select|Wrap|Line Numbers
  1. <div class="centerBoxContentsNew centeredContent back" style="width:33%;"><a href="01.jpg"><img 
  2.  
  3. src="02.JPG" alt="RHB_CNLIN0003-SILVER" title="" width="60" height="80" style="position:relative" 
  4.  
  5. onmouseover="showtrail('02.jpg','RHB_CNLIN0003-SILVER',60,80,187,249,this,0,0,60,80);" 
  6.  
  7. onmouseout="hidetrail();"  /></a><br /><a href="01.jpg">RHB_CNLIN0003-SILVER</a><br />US$15.00</div>
  8. <br class="clearBoth" />
  9.  
  10.  
Nov 3 '08 #1
6 1445
happyse27
236 100+
Hi All,

I got from the code above error : object expected line : 3 character 1 code 0 from internet explorer 7. There seemed to be problem with the internet explorer although i have did windows update.

Kindly enlighten...


Cheers...
Andrew
Nov 3 '08 #2
acoder
16,027 Expert Mod 8TB
That is a JavaScript error. This does seem to be a JavaScript problem. If you want to avoid JavaScript and use CSS alone, use :hover
Nov 3 '08 #3
happyse27
236 100+
Hi Sir,

I dont want it to hover, I saw the URL. I just wanted pop out the image without any html background. Thanks.


Thanks and Best Rgds,
Andrew
Nov 3 '08 #4
acoder
16,027 Expert Mod 8TB
It would be easiest with JavaScript, though you could possibly put something together with CSS. Do you want to avoid JavaScript at all costs? If not, I would recommend JavaScript and from the code in your first post, it seems JavaScript is being used anyway.

If you're going to use JavaScript, I'll move this thread to the JavaScript for you.
Nov 3 '08 #5
happyse27
236 100+
Hi Sir,

I saw this, not sure if got any alternative to use just html? But the web development tool I use is perl.


Thanks,
Andrew
Nov 3 '08 #6
acoder
16,027 Expert Mod 8TB
In that case, JavaScript would be your best bet. Moved thread to the JavaScript forum.

Note that JavaScript, HTML, CSS, etc. are all client-side while Perl is server-side.

To show an image within the browser window by clicking on a certain image, you would need to add some code that is triggered onclick (not onmouseover as you have it in the sample code). You can use an image gallery script if you want. Can you show some more of the code that you have?
Nov 3 '08 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

12
by: Kevin Lyons | last post by:
Hello, I am trying to get my select options (courses) passed correctly from the following URL: http://www.dslextreme.com/users/kevinlyons/selectBoxes.html I am having difficulty getting the...
7
by: luc | last post by:
I have found some code that will prevent visitors to our website from right clicking on our images to save them to there disk. But in windows xp this code is useless because when you rollover an...
10
by: sling blade | last post by:
Hello, I have an image map of a subdivision and each section of land in the subdivision has a lot number on it. Below the image map I have a table with details about each lot (eg Lot Number, Lot...
11
by: nuhura01 | last post by:
Hi.. I have a button to preview image using the following code, which preview the image in html page: Dim oStringWriter As System.IO.StringWriter = New System.IO.StringWriter Dim...
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
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:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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
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.