Input:
$w.onReady(function () {
//TODO: write your page related code here...
export function coverHoustonButton_click(event, $w) {
//Add your code for this event here:
$w("#leafArrow").show("SlideIn");
$w("#houstonOasisSite").show("FadeIn", 2000);
export function coverHoustonButton_mouseOut(event, $w) {
//Add your code for this event here:
$w("#leafArrow").hide("FadeOut");
$w("#houstonOasisSite").hide();
});
Output:
Loading the code for the Home page. To debug this code, open c1dmp.js in Developer Tools.
There was an error in your scriptType
Error: n is not a function
![](https://static.wixstatic.com/media/a27d24_2a4ba89423454508aa84ec5727e85059~mv2.jpg/v1/fill/w_593,h_289,al_c,q_80,enc_auto/a27d24_2a4ba89423454508aa84ec5727e85059~mv2.jpg)
Please help.
Michele
Roger that. Thank you
$w.onReady(function () {
//TODO: write your page related code here...
});
export function coverHoustonButton_click(event, $w) {
//Add your code for this event here:
$w("#leafArrow").show("SlideIn");
$w("#houstonOasisSite").show("FadeIn", 2000);
}
export function coverHoustonButton_mouseOut(event, $w) {
//Add your code for this event here:
$w("#leafArrow").hide("FadeOut");
$w("#houstonOasisSite").hide();
}
So you are saying... I need to close the onReady function. Then code?
Michele,
'export function' should not be declared within the scope of '$w.onReady(function ()'
$w.onReady is called once the page is loaded to allow you to run customised code right after the page is loaded
good luck,
Shlomi