Welcome to TalkGraphics.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Jun 2009
    Location
    berlin
    Posts
    29

    Default Plain Text as a Placeholder - clickable and visible?

    Hi guys!

    I'm trying to integrate a shop-system into my site.
    I use DLGuard for that and it already seems to work fine.

    I want to use the code provided by DLGuard to "link" on plain text, just as if it was a normal link, so that customers click on the text to add items to their cart. And it should also change colour whith mouseover.. as said, it should behave like a link.

    I've set up a Testpage here.
    I hope it demonstrates my problem. My aim would be the 2 links upper right to behave like the 2 buttons in the middle.

    here's the "add to cart"-code
    Code:
    <script>document.write('<a href="http://gameaudio.homelinux.net/dlg/ppcart.php?p=8&ppc=add&dlgreturn='+window.location.href+'"><IMG SRC="http://gameaudio.homelinux.net/dlg/displaybutton.php?p=8&ppc=add" BORDER="0"></a>');</script>
    and the "view cart"-code
    Code:
    <script>document.write('<a href="http://gameaudio.homelinux.net/dlg/ppcart.php?p=8&ppc=view&dlgreturn='+window.location.href+'"><IMG SRC="http://gameaudio.homelinux.net/dlg/displaybutton.php?p=8&ppc=view" BORDER="0"></a>');</script>
    I've also added the .xar file of the little demo-site.

    How can I solve this problem?
    Do I have to change the code? Or do something different in xtreme graphic designer?
    I don't want to use buttons at all, because I'd need 400 different ones because each will be placed on a slightly differently coloured background.. that would take ages.

    Hope you can help me!

    cheers, chilli
    Attached Files Attached Files
    Last edited by chilli; 18 February 2010 at 11:31 PM.
    www.chillheimer.de

  2. #2
    Join Date
    Aug 2004
    Location
    Ukraine
    Posts
    3,904

    Default Re: Plain Text as a Placeholder - clickable and visible?

    Generally you have to extract the HREF content from those snippets given to you by DLGuard.
    So, for example, in the first snippet it looks like this:
    Code:
    http://gameaudio.homelinux.net/dlg/ppcart.php?p=8&ppc=add&dlgreturn='+window.location.href+'
    But this particular code contains a JS part (in blue) that inserts your URL so that the DLGuard knows where the visitor comes from. It's this part:
    Code:
    '+window.location.href+'
    You have to replace it with your URL. So in case of your demo site it would be something like this:
    Code:
    http://gameaudio.homelinux.net/dlg/ppcart.php?p=8&ppc=add&dlgreturn=http://gameaudio.homelinux.net/
    Then you can put this link into the "Link to web address" field on the Link tab of the Web properties dialog. Make sure the "Correct address automatically" checkbox is unchecked.
    John.

 

 

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
  •