24185RE: Phantom double-quote (") character appearing in clip output
- Nov 18 4:13 PM
Thanks for the advice Ian, yes I agree, the syntax of the JS does look incorrect but it has to be that way for the script I am referencing to function.
I actually found a solution before I read your post. All I had to do was split the code up a bit and have a couple of ^!InsertHtml lines.
What the script does is pop up a message when you either hover or click on a hyperlink. The pop-up message has a hyperlink in it also 'http://www.google.com' in this case, or what ever the user enters. The "Where can I find stuff" part is the hyperlink text which activates the pop-up.
This is the script reference which appears within the <head></head> tags:
This is also required within the <body></body> tags:
<div id="overDiv" style="position:absolute; visibility:hidden; z-index:1000;"></div>
I am still a relative newbie to clip code, but I will definitely start making use of variables which would make for much cleaner and easier to debug code.
---In email@example.com, <indiamcq@...> wrote:Fred,
I'd declare the variables first, just for readability
^!set %activate%=^?[(T=C)How will pop-up be activated?==_onMouseover|onClick]
^!set %google%=^?[Link URL?=http://www.google.com]
I'd take out the style attribute and use a class and css instead.
I don't use ^!inserthtml, I tend to use ^!appendtofile. Id break it up so it is on different lines with multiple ^!inserthtml for readability.
The issue at hand:
onmouseover="return overlib('<a href=\'http://www.google.com\'"
Is a valid attribute structure.
Try ^!inserttext to see if the result is different.
On 19/11/2013 5:54 AM, fredmorris66@... wrote:
Anyone got any ideas? Is this a hidden bug? Or am I missing something?
Thanks in advance
- << Previous post in topic Next post in topic >>