Jump to content

How to add preview button in my website.

- - - - -

  • Please log in to reply
1 reply to this topic

#1
shah network

shah network

    Newbie

  • Members
  • Pip
  • 1 posts
Can anyone help me in adding preview this theme button in website..

themespalace.com

I want to add this button beneath each theme posting ..


Plz help me i come here because i thing this forum solve my problem.

Waiting of your reply..
:c-blink:

#2
xx3004

xx3004

    Newbie

  • Members
  • PipPip
  • 13 posts
If you only want the review button like that, the most simple idea is to capture an image (like they do), and open it whenever people click the "Preview button", with a few more css ans script, you can easily do like that.

Example (simplified version):
Make up a div contain review image, make sure that it is invisible and on the highest layer, you will have to set the image position and decoration yourself in order to gain the same result, ok?:

<div id='doPreview' style='z-index: 1000;'><img src=""></div>

Next, make a preview button:

<a href="javascript: document.getElementById('doPreview').innerHTML=\"<img src='LINK OF PREVIEW IMAGE'>\"; document.getElementById('doPreview').style.visibility='visible';">PREVIEW</a>


I hope that help, that is only the basic idea, you still have to work on your own!
xx3004,




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users