Link & visibility issues / Editor V1.19

Hello,

i have some issues with animation i made as an intro for new web site (it is in progress and can be seen here: https://www.2cats-design.de/ds/, wick file is https://www.2cats-design.de/ds/Startanimation.wick):

  1. Visibiliy issues, only seen in HTML export, not in editor itself:

    • Animation has “skip” button in bottom left side with “mousepressed” script (“window.open(“openmainwebsite.html”); window.close();”). It is placed on very first frame. On HTML website this button takes about 5 seconds to appear. I can 't understand.
    • At the end the last button is “to to website” with default script “stop()”, then again Mousepressed script as in skip button. And this skip button shows a “hand” cursor when mouse is over (as this is normal on any internet link), the “to to website” button does not. It works, but hand cursor would be nicer.
    • A closer look to first layer in front with three trees: This layer seems to be double (you see six trees), this double layer disapperas after some seconds. In editor this does not happen, there is no other layer.
  2. Link issue
    Script “window.open(“openmainwebsite.html”); window.close();” opens website in new tab, “window.close();” has no effect. I would prefer to load new site in same tab, as i use it like “target=” and than “_blank” or “_top” or whatever. Is this possible?

Thx in advance - i know, lots of questions :wink:, but i’m “Wick newcomer”.

Regards Marcus

1 Like

That’s because you have a layer that covers that button. In the editor, the layer is hidden, but in the html version, all hidden layers are shown.
image

If you would like the hand cursor to show on a button, add this to its default script:

this.cursor='pointer';

This might be related to the hidden layer (the one named “HG1”).
Hidden layers are only hidden in the editor, they’re visible in the html version.

Yes, it is possible to open a link in the same tab.
Try this code (and replace the link with what you need):

window.location="https://www.2cats-design.de/ds/index1.html";

(Note that if you test this in the editor, it’ll close your project to visit the link)


Also, welcome to the wick forums!
You’ll get the hang of wick after a while :+1:

If you still need help with anything just let us know :)

THANK for that so far, question with mouse pointes is solved ;-) Two questions left:

  1. I cant find no “hiddel” layer, and even when layer named “skip” is first layer in the list, this button appears 5 seconds after start of animation. The button is on the top now (i changed this) - no effect.
  2. “window.location=“https://www.2cats-design.de/ds/index1.html";" still opens another tab with index1.html instead of replacing content … By the way, both index and index1 are iframes with different frame sets. In first test, index1.html is displayed in iframe of index.html instead of “clearing screen” before loading index1.html. Is there something like “target=”_top”? If i use it like “window.location=“https://www.2cats-design.de/ds/index1.html”; target=”_top”;", nothing happens on both buttons.

3. Seems i 've killed the animation: Even if i switch back to “window.open(“index1.html”); window.close();”, nothings happens. Neither on “skip” nor on “enter web site” … :sob:

I cant help you but

Off Topic

Die website ist ja auf deutsch, das finde ich gut XD

That’s odd… I made some edits to the wick file, let me know if this works better:
My Project2-8-2022_18-15-16.wick (913.2 KB)
(I hope I shared the right file)

And here’s an html version:
My Project2-8-2022_18-14-33.html (3.3 MB)