Welcome to TalkGraphics.com
Page 2 of 2 FirstFirst 12
Results 11 to 13 of 13
  1. #11
    Join Date
    Aug 2000
    Location
    Harwich, Essex, England
    Posts
    21,917

    Default Re: A few questions - resizing image and change image on the same page

    I can't find away around this either. Interestingly the example site uses svg files to create this effect.
    Egg

    Intel i7 - 4790K Quad Core + 16 GB Ram + NVIDIA Geforce GTX 1660 Graphics Card + MSI Optix Mag321 Curv monitor
    + Samsung 970 EVO Plus 500GB SSD + 232 GB SSD + 250 GB SSD portable drive + ISP = BT + Web Hosting = TSO Host

  2. #12
    Join Date
    Apr 2012
    Location
    SW England
    Posts
    17,823

    Info Re: A few questions - resizing image and change image on the same page

    Again, I am only mildly interested in this.

    My approach, within a Xara design, would be to create a Green 50% Flat Transparent Rectangle with a ClassName.
    I would scale and skew to a best fit for an an area . I would clone and overlap and fit to extend the area to cover an entire floor.

    I would write some JavaScript to detect a hover and so change all the Class objects from opacity 0 to opacity 1.
    The click event might be better as JS too so avoid too much rollover stutter.

    The correction of SVGs to scale properly in Pro+ actually allows for the original approach to be replicated quite easily.
    You just create your complicated shape and Export as SVG and Embed back onto the design.
    I would take then designed shape as the Placeholder.
    Sadly, you need all of:
    Code:
    <a href="#"><object type="image/svg+xml" data="index_htm_files/FloorA.svg" id="floorA">
        <!-- Your fall back here -->
        <img src="index_htm_files/FloorA.svg" />
    </object>
    </a>
    You then have to code the SVG to appear on hover.
    The link hover doesn't follow the shapes in IE but modern browsers are fine.

    Acorn
    Acorn - installed Xara software: Cloud+/Pro+ and most others back through time (to CC's Artworks). Contact for technical remediation/consultancy for your web designs.
    When we provide assistance, your responses are valuable as they benefit the community. TG Nuggets you might like. Report faults: Xara Cloud+/Pro+/Magix Legacy; Xara KB & Chat

  3. #13
    Join Date
    Apr 2018
    Location
    Barnes, London
    Posts
    952

    Default Re: A few questions - resizing image and change image on the same page

    The correction of SVGs to scale properly in Pro+ actually allows for the original approach to be replicated quite easily.
    Thank you for the explanation Acorn. I expect SVG scaling will fix a few other issues too.

    Gary

 

 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •