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

make a pop up window for this xml code

2
this is the code to a photogallery that displays thumbnails when clicked on a window opens my problem is i wish to customize the size of the window height 500 width 400 scrollbars no resize no and so on can this be done?
below is the file items.xml the site is cjmusicproduction.com/gallery.html

Expand|Select|Wrap|Line Numbers
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <data>
  3.     <settings
  4.         itemsOnPage="5"
  5.         onClickChange="5"
  6.         onChangeHideArrows="true"
  7.  
  8.         itemSlider_X="20"                    
  9.         itemSlider_Y="190"
  10.         scaleItemImages="true"
  11.  
  12.         arrowDistance="10"
  13.         itemsDistance="15"
  14.  
  15.         alwaysShowText="true"
  16.         rolloverBrigtness="-0.3"
  17.         rolloverSaturation="0"
  18.         rolloverEffectTweenTime="1"
  19.         rolloverEffectTweenType="linear"
  20.  
  21.         slideTweenTime="0.5"
  22.         slideTweenDelayTime="0.15"
  23.         slideTweenType="easeOutCubic"
  24.         slideDistance="200"
  25.  
  26.         blur="true"
  27.         blurQuality="1"
  28.         blurX="40"
  29.         blurTweenTime="0.4"
  30.         blurTweenType="easeOutCubic"
  31.  
  32.         startAlpha="0"
  33.         alphaTweenTime="0.3"
  34.         alphaTweenType="easeOutCubic"
  35.  
  36.         reflection="true"
  37.         reflectionAlpha="50"
  38.         reflectionAlpha2="90"
  39.         reflectionRatio="190"
  40.         reflectionDistance="2"
  41.         reflectionUpdateTime="0.1"
  42.     />
  43.  
  44.  
  45.  
  46.     <items>
  47.         <item>
  48.             <thumb1>http://bytes.com/images/2_1.jpg</thumb1>
  49.             <thumb2>http://bytes.com/images/2_2.jpg</thumb2>
  50.             <text1><![CDATA[FEELING IT! ]]></text1>
  51.             <text2><![CDATA[FEELING IT! ]]></text2>
  52.             <link>2.html</link>
  53.             <target>_blank</target>
  54.         </item>
  55.         <item>
  56.             <thumb1>http://bytes.com/images/6_1.jpg</thumb1>
  57.             <thumb2>http://bytes.com/images/6_2.jpg</thumb2>
  58.             <text1><![CDATA[DIRECTION]]></text1>
  59.             <text2><![CDATA[DIRECTION]]></text2>
  60.             <link>6.swf</link>
  61.             <target>_blank</target>
  62.         </item>
  63.         <item>
  64.             <thumb1>http://bytes.com/images/7_1.jpg</thumb1>
  65.             <thumb2>http://bytes.com/images/7_2.jpg</thumb2>
  66.             <text1><![CDATA[MS.HAYNES]]></text1>
  67.             <text2><![CDATA[SUPERSTAR]]></text2>
  68.             <link><![CDATA[7_0.html]]></link>
  69.             <target>_blank</target>
  70.  
  71.         </item>
  72.         <item>
  73.             <thumb1>http://bytes.com/images/8_1.jpg</thumb1>
  74.             <thumb2>http://bytes.com/images/8_2.jpg</thumb2>
  75.             <text1><![CDATA[REFLECTIONS]]></text1>
  76.             <text2><![CDATA[REFLECTIONS]]></text2>
  77.             <link><![CDATA[]]></link>
  78.             <target>_blank</target>
  79.         </item>
  80.         <item>
  81.             <thumb1>http://bytes.com/images/9_1.jpg</thumb1>
  82.             <thumb2>http://bytes.com/images/9_2.jpg</thumb2>
  83.             <text1><![CDATA[DIRECTOR]]></text1>
  84.             <text2><![CDATA[DIRECTOR]]></text2>
  85.             <link><![CDATA[]]></link>
  86.             <target>_blank</target>
  87.         </item>
  88.         <item>
  89.             <thumb1>http://bytes.com/images/1_1.jpg</thumb1>
  90.             <thumb2>http://bytes.com/images/1_2.jpg</thumb2>
  91.             <text1><![CDATA[SING IT!]]></text1>
  92.             <text2><![CDATA[SING IT!]]></text2>
  93.             <link>1.html</link>
  94.             <target>_blank</target>
  95.         </item>
  96.  
  97.         <item>
  98.             <thumb1>http://bytes.com/images/3_1.jpg</thumb1>
  99.             <thumb2>http://bytes.com/images/3_2.jpg</thumb2>
  100.             <text1><![CDATA[MY PRODUCER]]></text1>
  101.             <text2><![CDATA[PRODUCER]]></text2>
  102.             <link><![CDATA[]]></link>
  103.             <target>_blank</target>
  104.         </item>
  105.         <item>
  106.             <thumb1>http://bytes.com/images/4_1.jpg</thumb1>
  107.             <thumb2>http://bytes.com/images/4_2.jpg</thumb2>
  108.             <text1><![CDATA[DIRECTION]]></text1>
  109.             <text2><![CDATA[DIRECTION]]></text2>
  110.             <link><![CDATA[]]></link>
  111.             <target>_blank</target>
  112.         </item>
  113.         <item>
  114.             <thumb1>http://bytes.com/images/11_1.jpg</thumb1>
  115.             <thumb2>http://bytes.com/images/11_2.jpg</thumb2>
  116.             <text1><![CDATA[COMPOSER]]></text1>
  117.             <text2><![CDATA[COMPOSER]]></text2>
  118.             <link><![CDATA[]]></link>
  119.             <target>_blank</target>
  120.         </item>
  121.         <item>
  122.             <thumb1>http://bytes.com/images/10_1.jpg</thumb1>
  123.             <thumb2>http://bytes.com/images/10_2.jpg</thumb2>
  124.             <text1><![CDATA[ON STAGE]]></text1>
  125.             <text2><![CDATA[ON STAGE]]></text2>
  126.             <link><![CDATA[]]></link>
  127.             <target>_blank</target>
  128.         </item>
  129.         <item>
  130.             <thumb1>http://bytes.com/images/12_1.jpg</thumb1>
  131.             <thumb2>http://bytes.com/images/12_2.jpg</thumb2>
  132.             <text1><![CDATA[LOVE]]></text1>
  133.             <text2><![CDATA[LOVE]]></text2>
  134.             <link><![CDATA[12_0.html]]></link>
  135.             <target>_blank</target>
  136.         </item>
  137.         <item>
  138.             <thumb1>http://bytes.com/images/5_1.jpg</thumb1>
  139.             <thumb2>http://bytes.com/images/5_2.jpg</thumb2>
  140.             <text1><![CDATA[STARS]]></text1>
  141.             <text2><![CDATA[STARS]]></text2>
  142.             <link><![CDATA[]]></link>
  143.             <target>_parent</target>
  144.         </item>
  145.         <item>
  146.             <thumb1>http://bytes.com/images/13_1.jpg</thumb1>
  147.             <thumb2>http://bytes.com/images/13_2.jpg</thumb2>
  148.             <text1><![CDATA[FAMILY]]></text1>
  149.             <text2><![CDATA[MOTHER AND SON]]></text2>
  150.             <link><![CDATA[13_0.html]]></link>
  151.             <target>_blank</target>
  152.         </item>
  153.         <item>
  154.             <thumb1>http://bytes.com/images/14_1.jpg</thumb1>
  155.             <thumb2>http://bytes.com/images/14_2.jpg</thumb2>
  156.             <text1><![CDATA[LOOKING GOOD]]></text1>
  157.             <text2><![CDATA[DYNAMIC DUO]]></text2>
  158.             <link><![CDATA[14_0.html]]></link>
  159.             <target>_blank</target>
  160.         </item>
  161.     </items>
  162. </data>
Feb 16 '09 #1
3 8237
jkmyoung
2,057 Expert 2GB
This is more of a javascript question first. Figure out how to do it in javascript, and then the xml forum can tell you how to convert your xml into this source.

Moved to javascript forum.
Feb 18 '09 #2
lzo53
2
Expand|Select|Wrap|Line Numbers
  1. <SCRIPT LANGUAGE="javascript">
  2. <!--
  3. window.open ('titlepage.html', 'newwindow', config='height=100,
  4. width=400, toolbar=no, menubar=no, scrollbars=no, resizable=no,
  5. location=no, directories=no, status=no')
  6. -->
  7. </SCRIPT> 
how do i convert this Javascript function to a xml function?

Expand|Select|Wrap|Line Numbers
  1. <item>
  2.     <thumb1>images/2_1.jpg</thumb1>
  3.     <thumb2>images/2_2.jpg</thumb2>
  4.     <text1><![CDATA[FEELING IT! ]]></text1>
  5.     <text2><![CDATA[FEELING IT! ]]></text2>
  6.     <link>2.html</link>
  7.     <target>window.open</target>
  8. </item>
Feb 19 '09 #3
Dormilich
8,658 Expert Mod 8TB
@lzo53
you can't make XML do the popup for you. nevertheless, XSLT is able to produce the Javascript code necessary for that (I recommend server side processing here).
Feb 19 '09 #4

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

Similar topics

2
by: kelli | last post by:
I am using an iframe to feed an RSS but when i click on the link on the iframe it opens the link on the iframe instead of opening it on the parent window or a new window.. the code is in php.. its...
1
by: BKM | last post by:
I've been using the following 2 ways to make sure my WebBrowser is finished loading a page before continuing with the next code. do:doevents:loop while WebBrowser.Busy do:doevents:loop until...
3
by: Eric Osman | last post by:
Hi, When I run the following html file on netscape, and the button is clicked, the new window pops BEHIND all my other windows. How can I easily fix this html file so the window comes up in...
9
by: Randell D. | last post by:
Folks, I'm working on a contact name/address database whereby a slimed down list is shown in the main window. When a record is selected, the complete record is displayed in a new window via a...
1
by: amith | last post by:
Hi, I have a javascript, calendar.js which i use to enable my client to select the date. This calendar pops up on the click of a gif image. But the problem is that this poped up window is not...
40
by: Brian Jorgenson | last post by:
On my web page, I have a few hyperlinks with target frame of _blank. The hyperlink brings up a second window, but everytime I click on thie hperlink, it keeps bringing up a new window and not...
1
by: ajay | last post by:
I have following code for a slide menu but i twiked it to work for a single level menu. Open it in a Browser to get a clear picture. I have 2 Qs 1) How to make first entry as non-link. i.e i...
2
by: Cathy | last post by:
Has anyone ever made a webform button run an onClick event that is a Javascript in the HTML code and then after running the script make it go into the code-behind? An HTML button will run the...
3
by: Neo | last post by:
I am going to make SDI base application in MFC, which has a button for "New Window", will show new window with different view. How I can solve this problem? Main window view class inherited...
6
by: SAL | last post by:
Hi, VS2005 post I'm opening a window using the following syntax: Protected Sub lbEstValue_Click(ByVal sender As Object, ByVal e As System.EventArgs)...
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
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
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
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
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,...
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.