make a pop up window for this xml code

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • lzo53
    New Member
    • Feb 2009
    • 2

    make a pop up window for this xml code

    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 cjmusicproducti on.com/gallery.html

    Code:
    <?xml version="1.0" encoding="UTF-8"?>
    <data>
    	<settings
    		itemsOnPage="5"
    		onClickChange="5"
    		onChangeHideArrows="true"
    		
    		itemSlider_X="20"					
    		itemSlider_Y="190"
    		scaleItemImages="true"
    		
    		arrowDistance="10"
    		itemsDistance="15"
    		
    		alwaysShowText="true"
    		rolloverBrigtness="-0.3"
    		rolloverSaturation="0"
    		rolloverEffectTweenTime="1"
    		rolloverEffectTweenType="linear"
    		
    		slideTweenTime="0.5"
    		slideTweenDelayTime="0.15"
    		slideTweenType="easeOutCubic"
    		slideDistance="200"
    		
    		blur="true"
    		blurQuality="1"
    		blurX="40"
    		blurTweenTime="0.4"
    		blurTweenType="easeOutCubic"
    		
    		startAlpha="0"
    		alphaTweenTime="0.3"
    		alphaTweenType="easeOutCubic"
    		
    		reflection="true"
    		reflectionAlpha="50"
    		reflectionAlpha2="90"
    		reflectionRatio="190"
    		reflectionDistance="2"
    		reflectionUpdateTime="0.1"
    	/>
    		
    
    						
    	<items>
    		<item>
    			<thumb1>http://bytes.com/images/2_1.jpg</thumb1>
    			<thumb2>http://bytes.com/images/2_2.jpg</thumb2>
    			<text1><![CDATA[FEELING IT! ]]></text1>
    			<text2><![CDATA[FEELING IT! ]]></text2>
    			<link>2.html</link>
    			<target>_blank</target>
    		</item>
    		<item>
    			<thumb1>http://bytes.com/images/6_1.jpg</thumb1>
    			<thumb2>http://bytes.com/images/6_2.jpg</thumb2>
    			<text1><![CDATA[DIRECTION]]></text1>
    			<text2><![CDATA[DIRECTION]]></text2>
    			<link>6.swf</link>
    			<target>_blank</target>
    		</item>
    		<item>
    			<thumb1>http://bytes.com/images/7_1.jpg</thumb1>
    			<thumb2>http://bytes.com/images/7_2.jpg</thumb2>
    			<text1><![CDATA[MS.HAYNES]]></text1>
    			<text2><![CDATA[SUPERSTAR]]></text2>
    			<link><![CDATA[7_0.html]]></link>
    			<target>_blank</target>
    			
    		</item>
    		<item>
    			<thumb1>http://bytes.com/images/8_1.jpg</thumb1>
    			<thumb2>http://bytes.com/images/8_2.jpg</thumb2>
    			<text1><![CDATA[REFLECTIONS]]></text1>
    			<text2><![CDATA[REFLECTIONS]]></text2>
    			<link><![CDATA[]]></link>
    			<target>_blank</target>
    		</item>
    		<item>
    			<thumb1>http://bytes.com/images/9_1.jpg</thumb1>
    			<thumb2>http://bytes.com/images/9_2.jpg</thumb2>
    			<text1><![CDATA[DIRECTOR]]></text1>
    			<text2><![CDATA[DIRECTOR]]></text2>
    			<link><![CDATA[]]></link>
    			<target>_blank</target>
    		</item>
    		<item>
    			<thumb1>http://bytes.com/images/1_1.jpg</thumb1>
    			<thumb2>http://bytes.com/images/1_2.jpg</thumb2>
    			<text1><![CDATA[SING IT!]]></text1>
    			<text2><![CDATA[SING IT!]]></text2>
    			<link>1.html</link>
    			<target>_blank</target>
    		</item>
    			
    		<item>
    			<thumb1>http://bytes.com/images/3_1.jpg</thumb1>
    			<thumb2>http://bytes.com/images/3_2.jpg</thumb2>
    			<text1><![CDATA[MY PRODUCER]]></text1>
    			<text2><![CDATA[PRODUCER]]></text2>
    			<link><![CDATA[]]></link>
    			<target>_blank</target>
    		</item>
    		<item>
    			<thumb1>http://bytes.com/images/4_1.jpg</thumb1>
    			<thumb2>http://bytes.com/images/4_2.jpg</thumb2>
    			<text1><![CDATA[DIRECTION]]></text1>
    			<text2><![CDATA[DIRECTION]]></text2>
    			<link><![CDATA[]]></link>
    			<target>_blank</target>
    		</item>
    		<item>
    			<thumb1>http://bytes.com/images/11_1.jpg</thumb1>
    			<thumb2>http://bytes.com/images/11_2.jpg</thumb2>
    			<text1><![CDATA[COMPOSER]]></text1>
    			<text2><![CDATA[COMPOSER]]></text2>
    			<link><![CDATA[]]></link>
    			<target>_blank</target>
    		</item>
    		<item>
    			<thumb1>http://bytes.com/images/10_1.jpg</thumb1>
    			<thumb2>http://bytes.com/images/10_2.jpg</thumb2>
    			<text1><![CDATA[ON STAGE]]></text1>
    			<text2><![CDATA[ON STAGE]]></text2>
    			<link><![CDATA[]]></link>
    			<target>_blank</target>
    		</item>
    		<item>
    			<thumb1>http://bytes.com/images/12_1.jpg</thumb1>
    			<thumb2>http://bytes.com/images/12_2.jpg</thumb2>
    			<text1><![CDATA[LOVE]]></text1>
    			<text2><![CDATA[LOVE]]></text2>
    			<link><![CDATA[12_0.html]]></link>
    			<target>_blank</target>
    		</item>
    		<item>
    			<thumb1>http://bytes.com/images/5_1.jpg</thumb1>
    			<thumb2>http://bytes.com/images/5_2.jpg</thumb2>
    			<text1><![CDATA[STARS]]></text1>
    			<text2><![CDATA[STARS]]></text2>
    			<link><![CDATA[]]></link>
    			<target>_parent</target>
    		</item>
    		<item>
    			<thumb1>http://bytes.com/images/13_1.jpg</thumb1>
    			<thumb2>http://bytes.com/images/13_2.jpg</thumb2>
    			<text1><![CDATA[FAMILY]]></text1>
    			<text2><![CDATA[MOTHER AND SON]]></text2>
    			<link><![CDATA[13_0.html]]></link>
    			<target>_blank</target>
    		</item>
    		<item>
    			<thumb1>http://bytes.com/images/14_1.jpg</thumb1>
    			<thumb2>http://bytes.com/images/14_2.jpg</thumb2>
    			<text1><![CDATA[LOOKING GOOD]]></text1>
    			<text2><![CDATA[DYNAMIC DUO]]></text2>
    			<link><![CDATA[14_0.html]]></link>
    			<target>_blank</target>
    		</item>
    	</items>
    </data>
    Last edited by Dormilich; Feb 18 '09, 12:35 PM. Reason: added [code] tags
  • jkmyoung
    Recognized Expert Top Contributor
    • Mar 2006
    • 2057

    #2
    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.

    Comment

    • lzo53
      New Member
      • Feb 2009
      • 2

      #3
      puzzle

      Code:
      <SCRIPT LANGUAGE="javascript">
      <!--
      window.open ('titlepage.html', 'newwindow', config='height=100,
      width=400, toolbar=no, menubar=no, scrollbars=no, resizable=no,
      location=no, directories=no, status=no')
      -->
      </SCRIPT>
      how do i convert this Javascript function to a xml function?

      Code:
      <item>
      	<thumb1>images/2_1.jpg</thumb1>
      	<thumb2>images/2_2.jpg</thumb2>
      	<text1><![CDATA[FEELING IT! ]]></text1>
      	<text2><![CDATA[FEELING IT! ]]></text2>
      	<link>2.html</link>
      	<target>window.open</target>
      </item>
      Last edited by Dormilich; Feb 19 '09, 09:01 AM. Reason: added [code] tags

      Comment

      • Dormilich
        Recognized Expert Expert
        • Aug 2008
        • 8694

        #4
        Originally posted by lzo53
        how do i convert this Javascript function to a xml function?
        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).

        Comment

        Working...